2
votes
When I run my for loop the serial monitor is giving very strange results
Your error is the index into the chars[10][7] array. Your code uses indexes from 8 down to and including 1. But the second dimension holds only 7 elements, with indexes in the range 0 to 6.
This is a ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
programming × 1676arduino-uno × 571
c++ × 210
serial × 132
arduino-mega × 127
arduino-ide × 125
c × 102
sketch × 95
sensors × 90
arduino-nano × 63
esp8266 × 60
led × 59
library × 54
motor × 47
lcd × 45
code-review × 41
pins × 38
array × 38
string × 37
interrupt × 34
servo × 32
communication × 32
timers × 29
bluetooth × 24
button × 24