add RC5 (maybe)

This commit is contained in:
philippe44
2023-08-26 19:42:32 -07:00
parent b5b7dc6ebb
commit da87c859d0
5 changed files with 476 additions and 125 deletions

View File

@@ -423,9 +423,9 @@ bool create_rotary(void *id, int A, int B, int SW, int long_press, rotary_handle
/****************************************************************************************
* Create Infrared
*/
bool create_infrared(int gpio, infrared_handler handler) {
bool create_infrared(int gpio, infrared_handler handler, infrared_mode_t mode) {
// initialize IR infrastructure
infrared_init(&infrared.rb, gpio);
infrared_init(&infrared.rb, gpio, mode);
infrared.handler = handler;
// join the queue set