QAQ ==!
Dependencies: mbed QEI-1 nRF24L01P xiugai
main.cpp@14:5bc7349d0e3b, 2019-12-13 (annotated)
- Committer:
- zhangyx
- Date:
- Fri Dec 13 01:32:26 2019 +0000
- Revision:
- 14:5bc7349d0e3b
- Parent:
- 13:99e774135a00
- Child:
- 15:934289377f7a
add JY901 lib
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AlexQian | 3:ee5e434e047e | 1 | #define HIGH 1 |
AlexQian | 3:ee5e434e047e | 2 | #define LOW 0 |
glintligo | 0:e63858fec119 | 3 | #include "mbed.h" |
AlexQian | 3:ee5e434e047e | 4 | #include <string> |
AlexQian | 3:ee5e434e047e | 5 | typedef bool boolean; |
AlexQian | 3:ee5e434e047e | 6 | typedef std::string String; |
zhangyx | 14:5bc7349d0e3b | 7 | #include "sensors.h" |
zhangyx | 14:5bc7349d0e3b | 8 | #include "JY901.h" |
zhangyx | 10:cda7ae2fc9de | 9 | |
zhangyx | 14:5bc7349d0e3b | 10 | char buf[10] ; |
zhangyx | 14:5bc7349d0e3b | 11 | int len; |
zhangyx | 14:5bc7349d0e3b | 12 | int val; |
zhangyx | 14:5bc7349d0e3b | 13 | |
zhangyx | 14:5bc7349d0e3b | 14 | JY901 jy901_Serial_1(PB_6,PA_10); |
AlexQian | 3:ee5e434e047e | 15 | |
AlexQian | 3:ee5e434e047e | 16 | int main() { |
brainliang | 6:7db9b13ece76 | 17 | |
brainliang | 6:7db9b13ece76 | 18 | |
zhangyx | 14:5bc7349d0e3b | 19 | jy901_Serial_1.baud(9600); |
AlexQian | 3:ee5e434e047e | 20 | |
glintligo | 1:1e3eb2d1496b | 21 | } |