Skip to content

Instantly share code, notes, and snippets.

View B45i's full-sized avatar
:octocat:

Amal Shajan B45i

:octocat:
View GitHub Profile
int delayTime = 1;
int charBreak = 2.1;
int LED1 = 4;
int LED2 = 3;
int LED3 = 2;
int LED4 = 1;
int LED5 = 0;
void setup()
@B45i
B45i / Bluetooth Car.c
Last active April 17, 2021 02:52
C program for Bluetooth remote control car by amal shajan.
char getstr;
int in1=4;
int in2=5;
int in3=6;
int in4=7;
void mRight(int pin1,int pin2)
{
digitalWrite(pin1,HIGH);
/*
HackerRank World CodeSprint
Mars Exploration
*/
#include <math.h>
#include <stdio.h>
#include <string.h>
/*
HackerRank World CodeSprint 9 Grading Students
*/
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#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;
@B45i
B45i / 7 segment.c
Last active February 18, 2017 09:13
#include<stdio.h>
#include<string.h>
int main(){
int a0[3][3] = {
{0,2,0},
{1,0,1},
{1,2,1}
};
@B45i
B45i / sjf.c
Created February 23, 2017 09:13
#include "stdio.h"
struct proc{
int bt;
int tat;
int wt;
int pid;
};
#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
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;
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup() {
Serial.begin(4800);
mySerial.begin(4800);