Skip to content

Instantly share code, notes, and snippets.

View chayanforyou's full-sized avatar
🤖
Learning...

Chayan Mistry chayanforyou

🤖
Learning...
View GitHub Profile
@chayanforyou
chayanforyou / 4-esc-arduino.ino
Created September 6, 2016 04:47
Control 4 brushless motors with arduino
#include <Servo.h>
//Create the 4 esc objects
Servo esc1;
Servo esc2;
Servo esc3;
Servo esc4;
//Esc pins
int escPin1 = 8;
@chayanforyou
chayanforyou / gist:30ef3064566d0f9aa1e0
Last active January 31, 2016 17:21 — forked from anonymous/gist:5154933
Nokia Experiment2
#define BUFFERSIZE 127
uint8_t inBuffer[BUFFERSIZE];
int inLength; // length of data in the buffer
int numLoop = 0; // number of times we looped
int ledPin = 13;
void setup() {
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
}
void loop() {