Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 33278

Variables are used to store data in a sketch/program.

1 vote
Accepted

Global variable won't update inside void loop arduino

It seems like I forgot to include an if else condition above the ovrdtrue. if(content.indexOf("true") > 0) { digitalWrite(ledPin, HIGH); } Arduino is reading this condition even though the da …
Duckbenok's user avatar
  • 139
0 votes
4 answers
2k views

Global variable won't update inside void loop arduino

I need to update my global variable once I get a 'overdtrue' response and light up my LED but only my LED is lighting up but my global variable is not updated. Here is my code int x = 0; void loop( …
Duckbenok's user avatar
  • 139