init
Dependencies: mbed BufferedSerial mbed-rtos
main.cpp@0:6341b0ea46a0, 2019-03-30 (annotated)
- Committer:
- yukiTakezawa
- Date:
- Sat Mar 30 13:05:52 2019 +0000
- Revision:
- 0:6341b0ea46a0
test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yukiTakezawa | 0:6341b0ea46a0 | 1 | #include "mbed.h" |
yukiTakezawa | 0:6341b0ea46a0 | 2 | #include "BufferedSerial.h" |
yukiTakezawa | 0:6341b0ea46a0 | 3 | #include "rtos.h" |
yukiTakezawa | 0:6341b0ea46a0 | 4 | |
yukiTakezawa | 0:6341b0ea46a0 | 5 | BufferedSerial pc(USBTX,USBRX); |
yukiTakezawa | 0:6341b0ea46a0 | 6 | |
yukiTakezawa | 0:6341b0ea46a0 | 7 | int main() { |
yukiTakezawa | 0:6341b0ea46a0 | 8 | pc.printf("Hello\n\r"); |
yukiTakezawa | 0:6341b0ea46a0 | 9 | while(1) { |
yukiTakezawa | 0:6341b0ea46a0 | 10 | pc.printf("I am servo circuit\n\r"); |
yukiTakezawa | 0:6341b0ea46a0 | 11 | wait(0.2); |
yukiTakezawa | 0:6341b0ea46a0 | 12 | } |
yukiTakezawa | 0:6341b0ea46a0 | 13 | } |