Skip to content

Instantly share code, notes, and snippets.

/*
* Rise and Fall Arc Animation
*/
byte start = 0;
byte end;
Timer arcTimer;
#define ARC_DURATION 500
#define ARC_DELAY 100
void deathDisplay() {
// Note: DEATH_INTERVAL is 1000 (1 second animation)
if (!deathTimer.isExpired()) {
// then we are healing
// 4 containers to remove energy from
FOREACH_FACE(f) {
long offset = DEATH_INTERVAL / 6;
byte dist = (6 - f) % 6;
@jbobrow
jbobrow / books.md
Last active December 23, 2024 21:53

Books I finished reading (or listening to)

inspired by the list maintained by Max Fenton

in 2024

  • Project Hail Mary - Andy Weir
  • The Blind Watchmaker - Richard Dawkins
  • Shortest Way Home - Pete Buttigieg
  • Regretting Motherhood - Orna Donath
  • The Anxious Generation - Jonathan Haidt
  • Outlive - Peter Attia
@jbobrow
jbobrow / Sentiments Box - Notes.ino
Last active January 11, 2023 04:44
A quick sketch and notes on the sketch in the header. Not a functioning solution, but a sketch with a slightly different approach. Needs to be tested.
/*
* Rough Sketch for Sentiments Box
* modified code by Jonathan Bobrow
* updated 1.10.2023
*
* Goals:
* 1. Avoid using an arbitrary number for triggering the sensor
* Solution: remove noise from the sensor and make it adapt to it's environment
* by keeping a running average and then comparing the last value or N values to the average
* 2. Remove dependencies on delays