Skip to content

Instantly share code, notes, and snippets.

View buildcircuit's full-sized avatar

Sagar Sapkota buildcircuit

View GitHub Profile
// Example from Sparkfun.com
// Original page: http://www.sparkfun.com/tutorials/246
// Clear the display and say "Hello World!"
// This sketch is for Arduino versions 1.0 and later
// If you're using an Arduino version older than 1.0, use
// the other example code available on the tutorial page.
// Use the softwareserial library to create a new "soft" serial port
// for the display. This prevents display corruption when uploading code.
@buildcircuit
buildcircuit / esp8266-led-blink.ino
Created October 29, 2015 21:26
ESP8266 LED Blink Project
@buildcircuit
buildcircuit / RGB-SMD-LED.ino
Created October 20, 2015 22:11
RGB-SMD-LED-5050
/* ---------------------------------------------------------
* | Experimentation Kit for Arduino Example Code |
* | CIRC-RGB .: Colourful Light :. (RGB LED) |
* ---------------------------------------------------------
*
* We've blinked an LED and controlled eight in sequence now it's time to
* control colour. Using an RGB LED (actual 3 LEDs in a single housing)
* we can generate any colour our heart desires.
*
* (we'll also use a few programming shortcuts to make the code
@buildcircuit
buildcircuit / lightsensor2.ino
Created October 25, 2012 13:17
Amarino project- Light sensor
/* visit www.amarino-toolkit.net to know about Amarino*/
#include <MeetAndroid.h>
// declare MeetAndroid so that you can call functions with it
MeetAndroid meetAndroid;
int redLed = 11;
void setup()
{
@buildcircuit
buildcircuit / HCSR04.ino
Created October 24, 2012 11:51
Ultrasonic range finder using Amarino Evaluation shield
#include <LiquidCrystal.h>
LiquidCrystal lcd(13, 12, 10, 9, 8, 7);
int TrigPin = 4;
int EchoPin = 2;
void setup()
{
lcd.begin(16, 2);
@buildcircuit
buildcircuit / ledcontrol.ino
Created October 23, 2012 16:22
PWM LED Control using Android serial emulator
/* buildcircuit.com*/
int ledPin = 11;
String inString = ""; // string to hold input
int value;
void setup() {
// Initialize serial communications:
Serial.begin(9600);
}
@buildcircuit
buildcircuit / sendsms.ino
Created October 23, 2012 16:09
Send SMS- Amarino Evaluation shield
#include <MeetAndroid.h>
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(13, 12, 10, 9, 8, 7);
MeetAndroid meetAndroid;
String string;
void setup()
{
@buildcircuit
buildcircuit / testamarino.ino
Created October 23, 2012 16:04
Test Amarino- Amarino Evaluation Shield
/*
Receives Test Events from your phone.
After it gets a test message the led 11 will blink
for one second.
*/
#include <MeetAndroid.h>
MeetAndroid meetAndroid;
int onboardLed = 11;
@buildcircuit
buildcircuit / lightsensor.ino
Created October 23, 2012 15:59
Light Sensor using Amarino Evaluation Shield
#include <MeetAndroid.h>
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(13, 12, 10, 9, 8, 7);
MeetAndroid meetAndroid;
int ledPin = 11;
void setup()
@buildcircuit
buildcircuit / serial_display.ino
Created October 23, 2012 15:52
Serial Display_Amarino Evaluation Shield
// include the library code:
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(13, 12, 10, 9, 8, 7);
void setup(){
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);