1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-20 21:01:25 +03:00

Changed Stubs to Snippets

This commit is contained in:
Tom Igoe
2010-03-19 15:14:53 +00:00
parent 96729aca89
commit e1d6ac0208
6 changed files with 65 additions and 0 deletions

View File

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