Hz made less sense than milliseconds

This commit is contained in:
Neale Pickett 2023-12-31 20:39:45 -07:00
parent 61d4181864
commit 6b1b26fc0b
1 changed files with 4 additions and 5 deletions

View File

@ -9,11 +9,10 @@
#include "standard.hh" // Standard pins
// How often do you want to send an update?
// Bigger number: lower latency, but more bounces
// Smaller number: higher latency
// 50Hz feels pretty good to me
#define UPDATE_FREQ_HZ 50
#define UPDATE_INTERVAL_MS (1000 / UPDATE_FREQ_HZ)
// Smaller number: lower latency, but more bounces
// Bigger number: higher latency
// 20ms feels pretty good to me
#define UPDATE_INTERVAL_MS 20
InstrumentButtonState buttonState;