3
votes
Arduino Digispark ATtiny85 conditional logic not working
I am confident I solved the problem and think I know why it occurs.
PB1 on the digispark Attiny85 has a built in LED. This LED is still active when I run my code. The LED is dim, but consuming power. ...
2
votes
Accepted
Serial.println printing just after the previous string in same line
The previous print statements are these:
Serial.println("Successfully connected to ");
Serial.print(WIFI_SSID);
The SSID won't be terminated by a newline. Perhaps you meant:
Serial....
1
vote
Arduino Digispark ATtiny85 conditional logic not working
You would appear to have the incorrect physical pins connected to the switches:
Pins 0 and 1 connect directly to ground when closed, otherwise I count on the pull-up resistors.
However:
PB0 is ...
1
vote
Serial.println printing just after the previous string in same line
To follow on from previous answer, your solution is to either:
change the previous Serial.print() to a Serial.println() so that that text is followed by a line end, or
add a \n to the front of the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
programming × 1661arduino-uno × 569
c++ × 210
serial × 130
arduino-mega × 128
arduino-ide × 126
c × 102
sketch × 95
sensors × 91
arduino-nano × 63
led × 60
esp8266 × 59
library × 54
motor × 48
lcd × 44
code-review × 40
array × 38
string × 37
pins × 35
interrupt × 34
servo × 33
communication × 31
timers × 29
button × 26
bluetooth × 24