Logo
Explore Help
Sign In
myrddin/microbadge
1
0
Fork 0
You've already forked microbadge
Code Issues 4 Pull Requests Actions Packages Projects 1 Releases Wiki Activity
Files
1181759ace9b7c544c49eb2f0fa53bf1d318b041
microbadge/src/menu.rs

5 lines
58 B
Rust
Raw Normal View History

One major weekend coding session later... I hate doing this as one giant commit, but I was under the gun and had to just code as fast as I could, so some common software development things had to be skipped. Mostly git commits. Here we have several mini applications that reside on the microbit. * Menu - The main app switching presentation. * Badge - A name scroller. * Snake - A snake game. The switcher task is the main running task of the program. All the logic goes through here. It will pass the running off to different apps. When an app returns from its main function it will return the next app to switch to. The display task is a PWM LED matrix updater. It will turn on the LEDs for what ever frame is passed to it. It keeps a backing frame for draw calls that occur between new frames arriving. There are several button listeners for input handling. Everything is sent using channels, button input and presentation frames.
2025-07-18 10:47:10 -04:00
mod menu;
mod renderer;
pub use crate::menu::menu::Menu;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.2 Page: 627ms Template: 6ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API