Skip to content

Instantly share code, notes, and snippets.

View boxalljohn's full-sized avatar

John Boxall boxalljohn

View GitHub Profile
shiftout(a,b,c,d);
@boxalljohn
boxalljohn / 741
Last active December 19, 2015 18:18
digitalWrite(latchpin, LOW);
shiftOut(datapin, clockpin, MSBFIRST,102);
digitalWrite(latchpin, HIGH);
// Example 4.1
void setup()
{
pinMode(12, OUTPUT);
}
void loop()
{
digitalWrite(12, HIGH);
delay(500);
digitalWrite(12, LOW);
// Example 4.2
void setup()
{
pinMode(8, OUTPUT); // speker on pin 8
}
int del = 250; // for tone length
int lowrange = 2000; // the lowest frequency value to use
int highrange = 4000; // the highest...
void loop()
int jenny[10];
int jenny[10] = {0,7,3,8,6,7,5,3,0,9};
jenny[3] = 12;
int jenny[10] = {0,7,3,12,6,7,5,3,0,9};
for (int i = 0; i<10; i++; i<10)
{
jenny[i] = 8;
}
jenny[] = {8,8,8,8,8,8,8,8,8,8}