This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int delayTime = 1; | |
| int charBreak = 2.1; | |
| int LED1 = 4; | |
| int LED2 = 3; | |
| int LED3 = 2; | |
| int LED4 = 1; | |
| int LED5 = 0; | |
| void setup() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| char getstr; | |
| int in1=4; | |
| int in2=5; | |
| int in3=6; | |
| int in4=7; | |
| void mRight(int pin1,int pin2) | |
| { | |
| digitalWrite(pin1,HIGH); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| HackerRank World CodeSprint | |
| Mars Exploration | |
| */ | |
| #include <math.h> | |
| #include <stdio.h> | |
| #include <string.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| HackerRank World CodeSprint 9 Grading Students | |
| */ | |
| #include <math.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| #include <assert.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <ESP8266WiFi.h> | |
| #include <ArduinoJson.h> | |
| const char* ssid = "your_wifi_name"; | |
| const char* password = "your_password"; | |
| const char* host = "amalshajan.me"; // Your domain | |
| String path = "/iot/light.json"; | |
| const int pin = 16; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<stdio.h> | |
| #include<string.h> | |
| int main(){ | |
| int a0[3][3] = { | |
| {0,2,0}, | |
| {1,0,1}, | |
| {1,2,1} | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "stdio.h" | |
| struct proc{ | |
| int bt; | |
| int tat; | |
| int wt; | |
| int pid; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <ESP8266WiFi.h> | |
| #include <FirebaseArduino.h> | |
| #include <DHT.h> | |
| #define FIREBASE_URL "sensordata.firebaseio.com" | |
| #define FIREBASE_KEY "MyKeyGoesHere" | |
| #define DHTTYPE DHT11 | |
| #define DHTPIN D3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int a1,a2,a3,a4,a5, b1,b2,b3,b4,b5, c1,c2,c3,c4,c5, d1,d2,d3,d4,d5, e1,e2,e3,e4,e5, f1,f2,f3,f4,f5, g1,g2,g3,g4,g5, h1,h2,h3,h4,h5 = 0; | |
| int shape [] = {a1,b1,c1,d1,e1,f1,g1,h1, a2,b2,c2,d2,e2,f2,g2,h2, a3,b3,c3,d3,e3,f3,g3,h3, a4,b4,c4,d4,e4,f4,g4,h4, a5,b5,c5,d5,e5,f5,g5,h5}; | |
| int income; | |
| int in; | |
| int k ; | |
| boolean seekbar = false; | |
| int out; | |
| int d = false; | |
| int c = false; | |
| int a= false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <SoftwareSerial.h> | |
| SoftwareSerial mySerial(10, 11); // RX, TX | |
| void setup() { | |
| Serial.begin(4800); | |
| mySerial.begin(4800); | |