Teensy3.1 USB Serial and RTC test. Use this program to check the operation of the RTC after the 32KHz crystal has been fitted. If a back up cell has also been fitted the RTC will remain running after the main power has been removed. Reconnect the USB to the PC and the RTC time will be displayed when using a PC terminal program.
Dependencies: USBDevice mbed-src
Fork of USBSerial-RTC-HelloWorld by
Diff: main.cpp
- Revision:
- 9:d88699a0905a
- Parent:
- 8:90f8322a65f8
- Child:
- 10:5a7c14815199
--- a/main.cpp Thu Dec 20 17:09:19 2012 +0000 +++ b/main.cpp Fri Mar 01 13:33:02 2013 +0000 @@ -3,15 +3,12 @@ //Virtual serial port over USB USBSerial serial; -DigitalOut l1(LED1); int main(void) { - int i = 0; - + while(1) { - serial.printf("I am a virtual serial port: %d\r\n", i++); - wait(0.1); - l1 = !l1; + serial.printf("I am a virtual serial port\r\n"); + wait(1); } } \ No newline at end of file