Include libiaires


#1

I want to add a IR remote to my ranger.

It is very easy to get ti working in Ardunio IDE connected to my ranger with following code to display the button code to the serial

indent preformatted text by 4 spaces#include <IRremote.h>

int reciver = A11;
IRrecv irrecv(reciver);
decode_results results;

void setup(){
Serial.begin(9600);
irrecv.enableIRIn();
}

void loop(){
if (irrecv.decode(&results)){
Serial.println (results.value, HEX);
irrecv.resume();
}
}

Now I need to create an extension block to use the remote with mblock5. How can I include the needed IRremote library from here https://www.arduinolibraries.info/libraries/i-rremote within the extension??


#2



a simple example.

Don’t forget the library must be in the src file.


#3

Ok does this mean the library can only be attached during publishing???
How can I go about developing and testing that the extension is working properly before publishing???


#4

you have to do this first.

for the pre (test) and post (sharing) required for the operation of the project.


#5

you should use your own library here

testing