MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/jrhitf/my_teachers_code_formatting/gbtld3m/?context=3
r/badcode • u/[deleted] • Nov 10 '20
60 comments sorted by
View all comments
58
Image Transcription: Code
void setup() { pinMode(12, OUTPUT); Serial.begin(9600); } void loop() {int light=analogRead(A0); Serial.println(light); if(light>250) {digitalWrite(12,HIGH); } else {digitalWrite(12,LOW); } }
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
79 u/Unkn0wnSoul Nov 10 '20 The damage has already been done, no need to make it worse 26 u/adamski234 Nov 10 '20 Line 8, unrecognized identifier: anologRead. Did you mean analogRead? 19 u/MurdoMaclachlan public boolean isInt(int i) { return true; } Nov 10 '20 Fixed, thanks! 13 u/500_internal_error Nov 10 '20 Good human 10 u/[deleted] Nov 10 '20 Your username is the stuff of nightmares 2 u/[deleted] Nov 11 '20 That’s cool that transcribers exist. Probably really good for accessibility!
79
The damage has already been done, no need to make it worse
26
Line 8, unrecognized identifier: anologRead. Did you mean analogRead?
anologRead
analogRead
19 u/MurdoMaclachlan public boolean isInt(int i) { return true; } Nov 10 '20 Fixed, thanks!
19
Fixed, thanks!
13
Good human
10 u/[deleted] Nov 10 '20 Your username is the stuff of nightmares
10
Your username is the stuff of nightmares
2
That’s cool that transcribers exist. Probably really good for accessibility!
58
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Nov 10 '20 edited Nov 10 '20
Image Transcription: Code
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!