Add more comments

This commit is contained in:
schmelczerandras 2020-04-19 20:55:44 +02:00
commit b5a95218ea
25 changed files with 200 additions and 60 deletions

View file

@ -5,13 +5,19 @@
#include <avr/io.h>
/*
Custom NEC implementation using a TSOP4838
*/
#define INFRA_ADDRESS 255
#define IR_PIN PB3
#define IR_PIN PB4
#define REPEAT_CODE 1
typedef void (*OnCommandReceived)(uint8_t);
typedef void (*OnReceiveStarted)();
void initializeInfra(OnCommandReceived onCommandReceived, OnReceiveStarted onReceiveStarted);
// Initialize infra and call onCommandReceived with every received byte
// Call onCommandReceived with the argument REPEAT_CODE if a repeat code
// has been received.
void initializeInfra(OnCommandReceived onCommandReceived);
#endif