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 setup() { | |
Serial.begin(9600); | |
pinMode(7,INPUT); | |
} | |
void loop() { |
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
var serial; // variable to hold an instance of the serialport library | |
var portName = '/dev/cu.usbmodem1411'; // fill in your serial port name here | |
var inData; | |
var pot1; | |
var pot2; | |
var pot3; | |
//var circleColor = 255; | |
function setup() { | |
createCanvas(600, 400); |
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 setup() { | |
Serial.begin(9600); | |
pinMode(2,INPUT); | |
} | |
void loop() { |
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
score = 0 | |
denomination = 0 | |
oddNumList=[] # declare an array | |
evenNumList=[] | |
firstHalfList=[] | |
secHalfList=[] | |
firstDozen=[] | |
secDozen=[] | |
thirdDozen=[] | |
row1=[] |
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
from turtle import * | |
import random | |
colors = ['orange', 'yellow', 'red', 'green', 'blue','cyan'] | |
for n in range(50): | |
penup() | |
goto(random.randint(-400, 400), random.randint(-400, 400)) | |
pendown() | |
distance = random.randint(10, 40) |
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
score = 0 | |
oddNumList=[] # declare an array | |
evenNumList=[] | |
firstHalfList=[] | |
secHalfList=[] | |
firstDozen=[] | |
secDozen=[] | |
thirdDozen=[] | |
row1=[] | |
row2=[] |
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 analog_range; | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(9600); | |
pinMode(8, OUTPUT); | |
pinMode(13, OUTPUT); | |
} | |
void loop() { |
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 analog_range; | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(9600); | |
pinMode(8, OUTPUT); | |
pinMode(13, OUTPUT); | |
} | |
void loop() { |
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
/* | |
sketch to open a digital lock | |
*/ | |
int attemptCount = 0; | |
int lastButtonState3 = 0; | |
int lastButtonState4 = 0; | |
int lastButtonState5 = 0; | |
int lastButtonState6 = 0; | |
int buttonState3; | |
int buttonState4; |
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
# allocating numbers to rollet categories | |
for rollet in range (36) | |
// initializing cell counts of categories to zero | |
rcc = 0, bcc = 0, ecc = 0, occ = 0, dz2c = 0, dz3c = 0, fh=0, sh=0, r1=0,r2=0,r3=0 | |
if (rollet <=1 and rollet >= 10) | |
y = rollet % 2 | |
if (y is 0): | |
bcc +=1, ecc +=1 | |
black[bcc] = rollet | |
even[ecc] = rollet |