Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <IRremote.h>
- /*DEFINE(Raw,0x0)
- DEFINE(NEC,0x1)
- */
- typedef struct EtatFirmware {
- char current_proto = 0x0;
- unsigned int raw = {};
- unsigned int current_freq = 38; // (38kHz)
- unsigned int current_code = 0;
- } EtatFirmware;
- EtatFirmware etatcourant;
- void reset() {
- etatcourant.current_proto = 0x0;
- etatcourant.raw = {};
- etatcourant.current_freq = 38;
- etatcourant.current_code = 0;
- }
- void setup() {
- Serial.begin(115200);
- reset();
- }
- void send(char proto,char *datas) {
- }
- void setFrequency(int khz){
- etatcourant.current_freq = khz;
- }
- unsigned int getFrequency(){
- return etatcourant.current_freq;
- }
- void loop() {
- // put your main code here, to run repeatedly:
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement