Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DDRB = 0; //input
- DDRD = 0; //input
- PORTB = 0xFF; //on
- PORTD = 0; //off
- for (;;)
- {
- while(fgetc(&USBSerialStream) != 'x'); //wait for x
- DDRB = gethex();
- DDRD = gethex();
- CDC_Device_USBTask(&VirtualSerial_CDC_Interface);
- USB_USBTask();
- }
- /* V1
- DDRB = 0xFF; //output
- DDRD = 0xFF;
- PORTB = 0; //off
- PORTD = 0;
- for (;;)
- {
- while(fgetc(&USBSerialStream) != 'x'); //wait for x
- PORTB = gethex();
- PORTD = gethex();
- CDC_Device_USBTask(&VirtualSerial_CDC_Interface);
- USB_USBTask();
- }*/
Add Comment
Please, Sign In to add comment