mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-14 11:29:26 +01:00
Updated description
It reads the state of a potentiometer (an analog input) and turns on an LED only if the LED goes above a certain threshold level. It prints the analog value regardless of the level. updated to It reads the state of a potentiometer (an analog input) and turns on an LED only if the potentiometer goes above a certain threshold level. It prints the analog value regardless of the level.
This commit is contained in:
parent
54a6d644b6
commit
060c1e766c
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
This example demonstrates the use of if() statements.
|
This example demonstrates the use of if() statements.
|
||||||
It reads the state of a potentiometer (an analog input) and turns on an LED
|
It reads the state of a potentiometer (an analog input) and turns on an LED
|
||||||
only if the LED goes above a certain threshold level. It prints the analog value
|
only if the potentiometer goes above a certain threshold level. It prints the analog value
|
||||||
regardless of the level.
|
regardless of the level.
|
||||||
|
|
||||||
The circuit:
|
The circuit:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user