Hello there guys im just looking for a pointer, im trying to find a way to say "when this function is/reach this value i want you to increment that this other variable" so that i can use that inside the constructor of the digitalWrite as a parameter.
int k ;
int q ;
void setup() {
pinMode(k, OUTPUT);
pinMode(q, OUTPUT);
}
void loop() {
zzf();
}
void gf()
int a = zzf();//test the conditions of zzf() and store in new variable int a
{
if (a == 80; a++)//if a reads 80 then increment a by 1
{
ei();//run the ei() function
}
}
void ei()
int k = 3
{digitalWrite(k, a);}
void zzf() {
for (f = 0; f < 80; f++) {
analogWrite(q, f);
}
}
this is are the errors that im getting:
sketch_feb29a:13: error: expected initializer before 'int'
sketch_feb29a:14: error: expected unqualified-id before '{' token
expected initializer before 'int'