#include "pico/stdlib.h" #include "debug.hpp" #include "display.hpp" #include "adc.hpp" #include "midi.hpp" void update() { for (auto const [value, changed] : adc::get_samples()) { if (!changed) continue; midi::send_message(); // update framebuffer } // send frame to display } [[noreturn]] int main() { debug::init(); display::init(); adc::init(); midi::init(); while (true) { update(); sleep_ms(50); } }