switch to setup for Arduino Boards Manager

This commit is contained in:
Erik Tylek Kettenburg
2015-06-23 12:42:35 -07:00
parent bc55c9bb45
commit 6ca6b114d5
3581 changed files with 93 additions and 51 deletions

View File

@@ -0,0 +1,20 @@
int RedPin = 5;
int GreenPin = 6;
int BluePin = 7;
void setup() {
// put your setup code here, to run once:
pinMode(RedPin, OUTPUT);
pinMode(GreenPin, OUTPUT);
pinMode(BluePin, OUTPUT);
}
void loop() {
randomSeed(analogRead(0));
// put your main code here, to run repeatedly:
analogWrite(RedPin,random(255));
analogWrite(GreenPin,random(255));
analogWrite(BluePin,random(255));
delay(500);
}