EasyVR3_LED_Library
EasyVR.h@0:8ec860bd579a, 2015-10-22 (annotated)
- Committer:
- Xiaofei
- Date:
- Thu Oct 22 19:35:17 2015 +0000
- Revision:
- 0:8ec860bd579a
- Child:
- 1:8b8bb6ac9d11
EasyVR3_LED
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Xiaofei | 0:8ec860bd579a | 1 | #pragma once |
Xiaofei | 0:8ec860bd579a | 2 | #include "mbed.h" |
Xiaofei | 0:8ec860bd579a | 3 | #include "protocol.h" |
Xiaofei | 0:8ec860bd579a | 4 | class EasyVR |
Xiaofei | 0:8ec860bd579a | 5 | { |
Xiaofei | 0:8ec860bd579a | 6 | public: |
Xiaofei | 0:8ec860bd579a | 7 | EasyVR(PinName tx,PinName rx); |
Xiaofei | 0:8ec860bd579a | 8 | ~EasyVR(); |
Xiaofei | 0:8ec860bd579a | 9 | |
Xiaofei | 0:8ec860bd579a | 10 | void sendCmd(uint8_t); |
Xiaofei | 0:8ec860bd579a | 11 | void sendArg(int8_t); |
Xiaofei | 0:8ec860bd579a | 12 | |
Xiaofei | 0:8ec860bd579a | 13 | int8_t recv(int8_t timeOut = 1); |
Xiaofei | 0:8ec860bd579a | 14 | void decrypt(char*); |
Xiaofei | 0:8ec860bd579a | 15 | |
Xiaofei | 0:8ec860bd579a | 16 | bool awake(int timeOut = 100); |
Xiaofei | 0:8ec860bd579a | 17 | |
Xiaofei | 0:8ec860bd579a | 18 | |
Xiaofei | 0:8ec860bd579a | 19 | private: |
Xiaofei | 0:8ec860bd579a | 20 | Serial _easyVR; |
Xiaofei | 0:8ec860bd579a | 21 | |
Xiaofei | 0:8ec860bd579a | 22 | }; |