- 1
What is wrong with my code? Itâs not working like its ment to
// C++ code // const int LED =13; const int BUTTON = 7; int val = 0; void setup() { pinMode(LED,OUTPUT); pinMode(BUTTON,INPUT); } void loop() { val = digitalRead(BUTTON); if(val = HIGH){ digitalWrite(LED,HIGH); }else{ digitalWrite(LED,LOW); } {
1 Answer
+ 3
Please avoid reposting a question to help the community reduce duplicate questions đ
https://www.sololearn.com/Discuss/2912910/?ref=app