From 1e1b43bf89e5b98a5f8179853a0284f18985d77a Mon Sep 17 00:00:00 2001 From: Mukund c menon Date: Fri, 12 Oct 2018 21:30:22 +0530 Subject: [PATCH 1/2] Create arduino- recieving data transmitted as IR --- arduino- recieving data transmitted as IR | 46 +++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 arduino- recieving data transmitted as IR diff --git a/arduino- recieving data transmitted as IR b/arduino- recieving data transmitted as IR new file mode 100644 index 0000000..6cb6d21 --- /dev/null +++ b/arduino- recieving data transmitted as IR @@ -0,0 +1,46 @@ +#include +int RECV_PIN = 11; +IRrecv rx(RECV_PIN); +decode_results results; +int ledpin=13,i=0; +char data[]="/MEC Is Great/"; +int len=sizeof(data); +int d=10; +void setup() +{ + Serial.begin(9600); + //Serial.println(s); + pinMode(ledpin,OUTPUT); + Serial.println("Enabling IRin"); + rx.enableIRIn(); +} +void loop() +{ + + delay(d); + if (rx.decode(&results)) + { + rx.resume(); + } + + if(results.value==1) + { + if(len==(i+1)) + i=0; + if(data[i]!='\0') + { + int ascii=data[i];// store acsii to c + + for(int j=7 ; j>=0 ;j--) + { + int l=bitRead(ascii,j); + digitalWrite(ledpin,l); + delay(35); + } + i++; + } + } + results.value=0; + delay(d); + +} From 2d56b5415e77f188e25a6967f2e604ea1953de13 Mon Sep 17 00:00:00 2001 From: Mukund c menon Date: Thu, 15 Aug 2019 20:21:08 +0530 Subject: [PATCH 2/2] Create hello world --- submit-a-pull-request/hello world | 1 + 1 file changed, 1 insertion(+) create mode 100644 submit-a-pull-request/hello world diff --git a/submit-a-pull-request/hello world b/submit-a-pull-request/hello world new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/submit-a-pull-request/hello world @@ -0,0 +1 @@ +