{"id":23881142,"url":"https://github.com/nullstalgia/mff-hr-v1","last_synced_at":"2026-05-16T04:51:07.890Z","repository":{"id":270765285,"uuid":"888934084","full_name":"nullstalgia/mff-hr-v1","owner":"nullstalgia","description":"A badge firmware I wrote for myself and friends to wear at MFF2024","archived":false,"fork":false,"pushed_at":"2024-12-25T04:53:36.000Z","size":538,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T00:15:15.260Z","etag":null,"topics":["ble","esp-idf-hal","esp-rs","esp32","heart-rate","mff","nimble","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nullstalgia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-15T09:34:58.000Z","updated_at":"2024-12-25T04:53:56.000Z","dependencies_parsed_at":"2025-01-03T00:05:28.006Z","dependency_job_id":"7099f785-2dde-4e8c-b4de-8926aa0cb21c","html_url":"https://github.com/nullstalgia/mff-hr-v1","commit_stats":null,"previous_names":["nullstalgia/mff-hr-v1"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullstalgia%2Fmff-hr-v1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullstalgia%2Fmff-hr-v1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullstalgia%2Fmff-hr-v1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullstalgia%2Fmff-hr-v1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nullstalgia","download_url":"https://codeload.github.com/nullstalgia/mff-hr-v1/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240254186,"owners_count":19772387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ble","esp-idf-hal","esp-rs","esp32","heart-rate","mff","nimble","rust"],"created_at":"2025-01-04T00:57:19.768Z","updated_at":"2026-05-16T04:51:02.866Z","avatar_url":"https://github.com/nullstalgia.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mff-hr-v1\n\n[![Continuous Integration](https://github.com/nullstalgia/mff-hr-v1/actions/workflows/rust_ci.yml/badge.svg)](https://github.com/nullstalgia/mff-hr-v1/actions/workflows/rust_ci.yml)\n\n### Demo:\n\n![2024-12-24--19-23-36-msrdc](https://github.com/user-attachments/assets/023fd233-3d67-4a81-8f27-831d802a7d02)\n\nMyself and a group of friends went to MFF together, and I slapped together a firmware for the 2-USB-Port variant of the Cheap Yellow Display for us to wear.\n\nThe badge lets you calibrate the touch input, enter a username, load QOI-format images from an SD Card in a configurable slideshow, and show the user's heartrate from any BLE Heart Rate Monitor!\n\nThis was a bit of a smoke test for using Rust in a constrained environment (only three weeks, have to be able to quickly move to my laptop/a friend's machine, and under 1MB of RAM on a base ESP32). As such, the code isn't the most beautiful or efficient, but it worked reliably for the whole con with battery to spare each day.\n\nIn that short time, I was able to set up:\n\n- [esp-idf-hal](https://github.com/esp-rs/esp-idf-hal), which has been largely pleasant to work with, including on GitHub CI!\n- An updated fork of a driver for Touchscreen IC I'd never used, copying calibration math from an Arduino library\n- An updated fork of bitbang-hal for SPI to then use ^ this crate\n- A UI to input names of variable lengths\n- A UI to select nearby BLE Heart Rate Monitors (both without any UI crates!)\n- A reactive history line for the incoming BPM\n\nAnd more that isn't as impressive, but given the short time frame for the whole ordeal, I'm very pleased.\n\nGranted, I wouldn't consider my updated forks to be exhaustive and ready to send in as PRs, but I would like to formalize my changes and get them upstreamed.\n\nWhat I didn't get to do this year:\n\n- I really wanted to load GIFs! I still think it's possible to stream them in from the SD to the display (no idea how buffering would work yet), since trying to keep a whole GIF, let alone a full frame, in memory is a challenge.\n- I wanted to have a more intricate effect on the name and it's letters, but I'm still happy with the friendly bounce.\n- I'd have also liked to use more of the HR logic that comes from [iron-heart](https://github.com/nullstalgia/iron-heart) for visual effects.\n- HR Data logging to SD! I could've thrown together a quick serializer but I was concerned there not being a way to timestamp them very well.\n\nThis could not have been possible without the works of:\n- The entire esp-rs team, love y'all.\n- embedded-hal/graphics/and more.\n- https://github.com/ardnew/XPT2046_Calibrated/blob/8d3f8b518b617b6fbc870ef3229b27aa83028c56/src/XPT2046_Calibrated.cpp\n- https://github.com/arashsm79/OFMon/blob/afca7d019f3e7efe79879b72dbd4a7d22d660c2d/src/main.rs\n\nWhat's next?\n\nStay tuned!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullstalgia%2Fmff-hr-v1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullstalgia%2Fmff-hr-v1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullstalgia%2Fmff-hr-v1/lists"}