-
Notifications
You must be signed in to change notification settings - Fork 0
Flash code
Kravitz Lab edited this page Feb 24, 2026
·
3 revisions
- Install the Arduino IDE and follow Adafruit instructions for configuring the M0 board
- Open Arduino IDE
- Click Sketch → Include Library → Manage Libraries
- Search for "Tumbly"
- Click Install to install the Tumbly Arduino library
- Click Examples > Tumbly > Tumbly.ino
- Double-click the button on the M0 to enter boot loader mode. Connect via microUSB.
- Select "Adafruit Feather M0" in the Arduino IDE
- Click the arrow to flash your Tumbly!
#include <Tumbly.h>
void setup() {
// Optional: configure before begin()
// setDeviceId(1);
// setSleepTime(10);
// setDoorTimes(20, 4); // Open 8pm, close 4am
// setDoorPositions(-10, 100);
begin();
}
void loop() {
ReadSensors();
TimedDoor();
LogData();
UpdateDisplay();
GoToSleep();
}