Challenge Name | LIGHTS |
Author | Kyle Chan |
Credit | newinnovators.ca |
Difficulty Level (1-5) | Level 3 |
Time To Complete | 5 minutes |
Challenge Description
|
. | |
Hint | |
Answer |
int sensorPin = A0;
int ledPin1 = 13;
int sensorValue = 0;
void setup()
{ pinMode(ledPin1, OUTPUT);
pinMode(sensorValue, INPUT);
}
void loop()
{
sensorValue = analogRead(sensorPin);
digitalWrite (ledPin1, sensorPin);
}
No comments:
Post a Comment