Skip to content

Instantly share code, notes, and snippets.

@ishotjr
Created April 8, 2021 01:54
Show Gist options
  • Save ishotjr/962b984ed152fae3f858e72a9720f027 to your computer and use it in GitHub Desktop.
Save ishotjr/962b984ed152fae3f858e72a9720f027 to your computer and use it in GitHub Desktop.
All Hands Active! ATMegaZero Workshop with ishotjr Cheat Sheet

Links


Workshop

First, we will configure our Arduino IDEs to use the ATMegaZero board.

shortcut: just add https://github.com/eddieespinal/atmegazero/raw/master/package_atmegazero_index.json to File->Preferences->Additional Board Manager URLs then Tools->Board->Board Manager and Search ATMegaZero and press Install

Next we will select the board and port:

Tools->Board->ATMegazero and select the ATMegaZero board
Tools->Port and select the ATMegaZero board (COMn or /dev/ttyACMn)

Then open and upload the example Blink sketch:

File->Examples->01.Basics->Blink
press the ➡️ button

Confirm blinking green LED.

Adjust delay() values (milliseconds) and re-flash; observe results.

Physically attach the Learning Shield via the 40-pin stacking header; the two boards should be aligned in the same orientation.

Copy and paste this code into a new sketch (File->New); clicking Raw to get just the code itself will make this easier.

Review the code together to understand the Arduino setup() and loop() functions, variables, pins, digitalRead(), digitalWrite(), tone(), delay() and user functions.

Upload the code.
Confirm all three large LEDs on the Learning Shield are lit and the audio sweep ran at startup.
Guess what we think will happen when we press the button.
Press the button!
Observe results.

Make it your own!

Brainstorm other uses!

❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment