How can I write my own Mode Module? #120
-
|
Is there some information about writing my own Mode Module? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi! There isn’t any dedicated documentation yet, but writing an mode module isn’t too hard once you get familiar with the structure. The exact steps depend a bit on what you want to build and whether it’s for personal use or something you’d like to share upstream. For a simple, personal mode you can start by:
If you plan to contribute it back, there are a few extra pieces—like adding a toggle in As a good starting point, check out the changes made in #40 If you’re new to coding, feel free to open a draft PR even if it’s rough — I’m happy to give pointers and help you get started. |
Beta Was this translation helpful? Give feedback.
Hi! There isn’t any dedicated documentation yet, but writing an mode module isn’t too hard once you get familiar with the structure. The exact steps depend a bit on what you want to build and whether it’s for personal use or something you’d like to share upstream.
For a simple, personal mode you can start by:
firmware/include/modes/CustomMode.handfirmware/src/modes/CustomMode.cpp.firmware/include/services/ModesService.h.If you plan to contribute it back, there are a few extra pieces—like adding a toggle in
firmware/include/config/modes.h, updatingfirmware/src/services/ModesService.cpp, and possibly making changes in thewebapp/U…