From 0a22bb3f6264b8b431e13a594c16ba9f80ea47cc Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sat, 10 Jun 2017 20:38:40 +0200 Subject: Fix --- floppyMusic/main.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'floppyMusic/main.c') diff --git a/floppyMusic/main.c b/floppyMusic/main.c index c0db582..09ca8d0 100644 --- a/floppyMusic/main.c +++ b/floppyMusic/main.c @@ -12,19 +12,25 @@ #include #include "floppy.h" -#include "uart.h" +//#include "uart.h" int main(void) { - uart_init(9600); + //uart_init(9600); + //DDRC = 0xff; + floppy_setup(&PORTC, &DDRC, &PORTB, &DDRB); + floppy_set_frequency(0, 70); - floppy_setup(&PORTC, &DDRC, &PORTD, &DDRD); - floppy_set_frequency(0, 4); + DDRD = 0xff; - uart_send_string("Floppy Music\n"); + PORTD = 0xff; //DEBUG + //uart_send_string("Floppy Music\n"); while (1) { - floppy_set_frequency(0, uart_recieve()); + //floppy_set_frequency(0, uart_recieve()); + //uart_send_string("Floppy Music\n"); + //_delay_ms(500); + //PORTD ^= 0xff; } } \ No newline at end of file -- cgit v1.2.3