Skip to content

Ebiko/NECreceiver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

NECreceiver

NEC IR Protocol

Arduino/UNO version of NEC receiving protocol

Comments temporarily in Slovak language.

Implementation

the header and source file are stored in folder named NECreceiver which is located among the other arduino libraries.

/********* File.INO *********/

extern "C" { #include "NECreceiver.h" };

int RECV_PIN = 8; // if you change the number 8 you must do it also in source file.

void loop() {

if (!digitalRead(RECV_PIN)) {

unsigned long decCode = Nec_In();

// I got the number 16754775 from printing the decCode variable.
// On my remote controller it is a plus sign
 
if(decCode == 16754775){
  // some code
}

} } /******* end.INO ***********/

About

NEC IR Protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages