ใช้้สื่อสารระหว่างบอร์ด Brain และ Motion
Dependencies: BEAR_Protocol iSerial mbed
main.cpp@0:db3b9f12e4d5, 2015-12-23 (annotated)
- Committer:
- b0ssiz
- Date:
- Wed Dec 23 13:09:30 2015 +0000
- Revision:
- 0:db3b9f12e4d5
- Child:
- 1:65ef1fe8e2f8
1st time Create Library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
b0ssiz | 0:db3b9f12e4d5 | 1 | #include "mbed.h" |
b0ssiz | 0:db3b9f12e4d5 | 2 | #include "BEAR_Protocol.h" |
b0ssiz | 0:db3b9f12e4d5 | 3 | #define baud 115200 |
b0ssiz | 0:db3b9f12e4d5 | 4 | |
b0ssiz | 0:db3b9f12e4d5 | 5 | int main() |
b0ssiz | 0:db3b9f12e4d5 | 6 | { |
b0ssiz | 0:db3b9f12e4d5 | 7 | float test; |
b0ssiz | 0:db3b9f12e4d5 | 8 | Bear_Communicate com(PA_15,PB_7,baud); |
b0ssiz | 0:db3b9f12e4d5 | 9 | com.SetBodyLength(0x01,test); |
b0ssiz | 0:db3b9f12e4d5 | 10 | } |