Skip to content

Instantly share code, notes, and snippets.

@eeaslan
eeaslan / Arduino_Uno_Digital_Port_Control_SW.ino
Created May 6, 2014 06:08
This software is the Arduino Uno firmware of a project called "Arduino Uno Port Control". The aim of this project is to control the digital I/O pins of Arduino Uno from an Android device. The android app can be downloaded from Google Play Store.
byte lineEnding = 0x0A;
//Data array that the received info from android app is recorded. Every byte corresponds to a digital pin.
byte readBuffer[15]; //For example readBuffer[5] is for digital pin 5.
byte defaultByte = 0x10; //On start all arduino digital pins must be input for electrical protection.
//Pins 0 and 1 are used for serial comminations. So read
void setup() {
for (int i=0; i < sizeof(readBuffer)-1 ; ++i) {