My understanding is that you always use the = sign when giving a variable a value.
The textbook that I am using does not do this.
The textbook code to make a diode blink 29 times is as follows:
const int ledPin = 13;
const int delayPeriod = 250;
void setup() {
pinMode (ledPin, OUTPUT);
}
void loop() {
flash (20, delayPeriod);
delay (3000);
}
void flash(int numFlashes, int d) {
for (int i=0; i < numFlashes; i++) {
digitalWrite (ledPi, HIGH);
delay (d);
digitalWrite (ledPin, LOW);
delay (d);
}
}
My problem is understanding why numFlashes and d are not given a value with an = sign.
Please help!