QAQ ==!

Dependencies:   mbed QEI-1 nRF24L01P xiugai

Revision:
14:5bc7349d0e3b
Parent:
13:99e774135a00
Child:
15:934289377f7a
diff -r 99e774135a00 -r 5bc7349d0e3b main.cpp
--- a/main.cpp	Mon Dec 02 06:53:14 2019 +0000
+++ b/main.cpp	Fri Dec 13 01:32:26 2019 +0000
@@ -4,23 +4,18 @@
 #include <string>
 typedef bool boolean;
 typedef std::string String;
-#include "eeprom.h"
-#include "ir.h"
+#include "sensors.h"
+#include "JY901.h"
 
-EEPROM eeprom(PB_7,PB_6,0,EEPROM::T24C02);
-Serial Serial_2(PA_2,PA_3);
+char buf[10] ;
+int len;
+int val;
+
+JY901 jy901_Serial_1(PB_6,PA_10);
 
 int main() {
 
 
-Serial_2.baud(9600);
-
-IR_Init(PB_10,PB_11,PA_5,eeprom);
-
-Serial_2.printf("learning\n");
-IR_StartLearning(1);
-Serial_2.printf("learned\n");
-IR_Emit(1);
-Serial_2.printf("sent\n");
+jy901_Serial_1.baud(9600);
 
 }
\ No newline at end of file