nRF24L01, encoder, pca9685, pid

Dependencies:   mbed QEI-1 LibPN532 nRF24L01P xiugai

Committer:
brainliang
Date:
Thu Nov 07 06:31:09 2019 +0000
Revision:
7:6f8157c58241
Parent:
6:7db9b13ece76
V5

Who changed what in which revision?

UserRevisionLine numberNew 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;
brainliang 7:6f8157c58241 7 #include "SYN6288.h"
brainliang 2:af377291f3ae 8
brainliang 7:6f8157c58241 9 String str;
glintligo 1:1e3eb2d1496b 10
brainliang 7:6f8157c58241 11 Serial syn6288_Serial_2(PA_2,PA_3);
AlexQian 3:ee5e434e047e 12
AlexQian 3:ee5e434e047e 13 int main() {
brainliang 6:7db9b13ece76 14
brainliang 6:7db9b13ece76 15
brainliang 7:6f8157c58241 16 for (int count = 0; count < 100; count++) {
brainliang 7:6f8157c58241 17 str = "\xc4\xe3\xba\xc3";
brainliang 7:6f8157c58241 18 str += String("\xca\xc0\xbd\xe7");
brainliang 7:6f8157c58241 19 voice_play(str,&syn6288_Serial_2);
brainliang 7:6f8157c58241 20 wait_ms(2000);
AlexQian 3:ee5e434e047e 21 }
AlexQian 3:ee5e434e047e 22
glintligo 1:1e3eb2d1496b 23 }