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:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user