Week 1

 

For the first week, we go back to the basics: blinking an LED with the ItsyBitsyM4.

Image

I programmed the ItsyBitsy M4 to blink its light!

Image

Here’s the software that blinks the light on the ItsyBitsy M4!

Image

I customized the code to customize the blinking pattern a bit and make it more chaotic:

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1500);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1200);                       // wait for a second
}