This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// arduino print |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int leds[100]; | |
int ledCount = 100; | |
int blinkFactor = 1; | |
void setup() { | |
Serial.begin(9600); | |
for (int blinkFactor = 1; blinkFactor <= 100; blinkFactor++) { | |
for (int thisLed = blinkFactor - 1; thisLed < ledCount; thisLed += blinkFactor) { | |
if (leds[thisLed] == 0) { | |
leds[thisLed] = 1; | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int leds[100]; | |
int ledCount = 100; | |
int blinkFactor = 1; | |
void setup() { | |
Serial.begin(9600); | |
Serial.println(); | |
Serial.println(); | |
Serial.println("*********Begin**********"); | |
for (int blinkFactor = 1; blinkFactor <= 100; blinkFactor++) { | |
Serial.println(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Moved to the class repo at https://github.com/coreobject/class | |
//create variables for pins | |
const int buttonPin = 2; | |
const int ledPin = 12; | |
const int fadeLed = 11; | |
const int potPin = 0; | |
const int lightPin = 1; | |
// LED fading variables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Moved to the class repo at https://github.com/coreobject/class | |
const int buttonPin = 2; | |
const int ledPin = 12; | |
const int fadeLed = 11; | |
int ledState = LOW; | |
int buttonState = 0; | |
int fadeLevel = 0; | |
boolean pressed = false; | |
void setup() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Binary Decoder Project | |
// Sparkle Labs | |
// Set a binary number with a DIP switch and decode it in the | |
// serial port monitor. | |
// | |
// | |
// +--------------------------------+ | |
// | +----------------------------+ | | |
// | | +------------------------+ | | | |
// | | | +--------------------+ | | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Sparkle Labs / Discover Arduino Bundle | |
// LED Meter Project | |
// --------------------------------------- | |
// Increment 3 LEDs by turning a knob. | |
// | |
// Circuit: | |
// Pins 0, 1, 2 are connected to ground through 3 LED drivers. | |
// A potentiometer is connected to power and ground on either side with the center pin (wiper) connected to Pin A0 on the Arduino. | |
// | |
// Parts: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <CapacitiveSensor.h> //Load the capSense Library which the touch sensor uses. | |
CapacitiveSensor cs_4_2 = CapacitiveSensor(4,2); // Set up the touch sensor on pins 4 and 2. | |
long capSense; // A variable to store the value from the touch sensor. | |
int ledPins[] = { | |
11, 10, 9, 6, 5, 3 }; | |
int pinCount = 6; | |
int lightPin = A0; | |
int lightValue = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void logo() { | |
Serial.println(" ----- "); | |
Serial.println(" ----- ( ) "); | |
Serial.println(" ------- ( ) ----- "); | |
Serial.println(" -/ \\- | ------ ------------- -+ "); | |
Serial.println(" / * \\/ \\--- ----/ \\/ \\+ "); | |
Serial.println(" _ | * \\--/ \\-+"); | |
Serial.println("( ) -\\ * * \\ "); | |
Serial.println(" ` --/ * \\"); | |
Serial.println(" / +-+ _ _ _ _ \\"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int ledPins[] = { | |
11, 10, 9, 6, 5, 3 }; | |
int pinCount = 6; | |
int lightPin = A0; // A variable for which pin has the light sensor. | |
int lightValue = 0; // A variable to keep track of the value we get from the light sensor. | |
int aLED = 13; | |
boolean aLEDstate; |
NewerOlder