Is this code correct? I was trying it in tinkercad, gave me errors.
void setup () {
pinMode(2,OUTPUT);
Serial.begin(9600);
}
void loop () {
int x = 1;
for(int i = 0; i > -1; i = i + x){
analogWrite(2,i);
if (i == 255){
x = -1;
}
SerialprintIn (x);
delay(10);
}
}
If you try it in the IDE what happens?
serialEventRun
exit status 1
'SerialprintIn' was not declared in this scope
showing a highlighted line about "SerialprintIn (x);"
Serial.println(x);
Just missing a period there.
Serial.begin
Serial.write
Serial.print
Ah my bad thanks, I actually got the letter wrong too lol! Wth i just got the kit an already I got to learn about operators control structures and wax on and wax off. Damn start me with the basics first! It's like here's a the complex infrastructure, now you just need to reverse engineer the code. I got the kit 2 weeks ago and I'm still messing LED lights and trying out different things with it and learning how the mechanics work. Thanks again! It's a warzone out there!
Sweet the numbers are showing. I heard this is very useful when learning with debugging so I wanted to learn this now and get it over with.