Add more comments
This commit is contained in:
parent
26e48fd997
commit
b5a95218ea
25 changed files with 200 additions and 60 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue