SquareWear Kit:
Driver for SquareWear Mac Free Download Driver for SquareWear Windows Free Download Arduino Software Free Download
SetupUpload Sample Code
Edit the Code
Clean up the Codeint redLED = 8; int blueLED = 13; int greenLED = 12; // the setup routine runs once when you press reset: void setup() { // initialize the digital pin as an output. pinMode(redLED, OUTPUT); pinMode(blueLED, OUTPUT); pinMode(greenLED, OUTPUT); } // the loop routine runs over and over again forever: void loop() { digitalWrite(redLED, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(redLED, LOW); // turn the LED off by making the voltage LOW delay(1000); digitalWrite(blueLED, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(blueLED, LOW); // turn the LED off by making the voltage LOW delay(1000); digitalWrite(greenLED, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(greenLED, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second }
Write Your Own Codeint LEDs[] = {8,13,12}; // array of LED pins int numLEDs = 3; // number of LED pins // the setup routine runs once when you press reset: void setup() { // initialize each digital pin as an output. for ( int i = 0; i < numLEDs; i++ ) pinMode(LEDs[i], OUTPUT); } // the loop routine runs over and over again forever: void loop() { // make each LED flash for ( int i = 0; i < numLEDs; i++ ) { digitalWrite(LEDs[i], HIGH); // turn the LED on delay(1000); // wait for a second digitalWrite(LEDs[i], LOW); // turn the LED off delay(1000); // wait for a second } }
Get to Know the SquareWear FurtherFind RGB values Site Use the PhotoresistorUse the Temperature Sensor Modify the Temperature Sensor Code Use the Buzzer Make Your Own Sketch