Connect your Feather M0 WiFi to your laptop or other Arduino programming environment and load the code into the board. Be sure to modify YOUR_SSID and YOUR_WIFI_PASSWORD to match your own network!

If you have not yet modified your board manager to include the Adafruit Feather, go check out the instructions in LadyAda's Feather M0 WiFi learning system tutorial. Once you have done this, your board should show up as "Adafruit Feather M0 (Native USB Port)". It should also show up on the correct port, but check these values just to be sure.

You will need to have the WiFi101 library, the LEDbackpack library, and the GFX library installed. The pin specification in the code on the previous page is correct for this hardware configuration.

Follow these guides

To make sure you have installed all Arduino libraries! Make sure you have code uploading and the examples running before you compile and upload this code since you will not be able to compile the code otherwise!

In recent versions of the Arduino IDE software (1.6.2 and later), library installation is most easily done through the Arduino Library Manager, which you’ll find in the “Sketch” menu: Sketch→Include Library→Manage Libraries…

Enter “ssd1306” in the search field, locate the Adafruit SSD1306 library and select “Install” (or “Upgrade” if you have an older version). Then repeat the same for “gfx” and the Adafruit GFX library, and “wifi” and the Arduino WiFi library.

If you’re using an earlier version of the Arduino IDE software and need to install libraries manually, or if you’d like to download the library source code to look inside, both of these can be found on Github.

Or here are links directly to the ZIP files:

Test your environment by compiling the code. Once it's compiling cleanly, upload the code to your Feather.

That's it! You now have an LED clock that's portable! The OLED display will show the current battery voltage which will tell you when it's time for a recharge. Enjoy your clock!

This guide was first published on May 02, 2016. It was last updated on Mar 08, 2024.

This page (Run it!) was last updated on Mar 08, 2024.

Text editor powered by tinymce.