QAQ ==!
Dependencies: mbed QEI-1 nRF24L01P xiugai
main.cpp
- Committer:
- zhangyx
- Date:
- 2019-12-02
- Revision:
- 13:99e774135a00
- Parent:
- 12:741de117e1ee
- Child:
- 14:5bc7349d0e3b
File content as of revision 13:99e774135a00:
#define HIGH 1 #define LOW 0 #include "mbed.h" #include <string> typedef bool boolean; typedef std::string String; #include "eeprom.h" #include "ir.h" EEPROM eeprom(PB_7,PB_6,0,EEPROM::T24C02); Serial Serial_2(PA_2,PA_3); 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"); }