USB Device Programming class project. This project allows a Python/Tk program running on a PC host to monitor/control a test-CPU programmed into an altera development board.
Dependencies: C12832_lcd USBDevice mbed-rtos mbed mmSPI
main.cpp@0:9a314675a67d, 2013-09-01 (annotated)
- Committer:
- gatedClock
- Date:
- Sun Sep 01 02:15:05 2013 +0000
- Revision:
- 0:9a314675a67d
- Child:
- 2:08655e2bb776
as created.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gatedClock | 0:9a314675a67d | 1 | #include "mbed.h" |
gatedClock | 0:9a314675a67d | 2 | |
gatedClock | 0:9a314675a67d | 3 | DigitalOut myled(LED1); |
gatedClock | 0:9a314675a67d | 4 | |
gatedClock | 0:9a314675a67d | 5 | int main() { |
gatedClock | 0:9a314675a67d | 6 | while(1) { |
gatedClock | 0:9a314675a67d | 7 | myled = 1; |
gatedClock | 0:9a314675a67d | 8 | wait(0.2); |
gatedClock | 0:9a314675a67d | 9 | myled = 0; |
gatedClock | 0:9a314675a67d | 10 | wait(0.2); |
gatedClock | 0:9a314675a67d | 11 | } |
gatedClock | 0:9a314675a67d | 12 | } |