1
0
Fork 0

arduino-0017-linux-x64

This commit is contained in:
Eve Entropia 2010-03-30 20:10:36 +02:00
parent ed785c5798
commit ddf58ffb08
436 changed files with 62981 additions and 0 deletions

View file

@ -0,0 +1,13 @@
void setup() {
pinMode(6, OUTPUT);
}
void loop() {
int sensorValue = analogRead(2);
int ledFadeValue = map(sensorValue, 0, 1023, 0, 255);
analogWrite(6, ledFadeValue);
}