Commit Graph

39 Commits

Author SHA1 Message Date
hueso 9bec291f4c volatile modifier propagation
Badgemagic Firmware build / build (push) Has been cancelled
2026-02-09 04:56:12 -03:00
hueso caaa1758a0 fix compiler warnings
Badgemagic Firmware build / build (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
2026-02-09 04:06:06 -03:00
puckipedia 5df3122a75 Handle button events outside interrupt context (#125)
A lot of the button tasks configure TMOS tasks, which causes a lot of
graphical glitches, when the bluetooth icon is drawn but the other
tasks for rendering the effects still run.

This also fixes the "WFI inside the interrupt handler" issue causing
poweroff to hang.
2026-02-01 13:07:57 +01:00
Dien-Nhung Nguyen f625f57b02 docs: add an example for streaming feature (#99) 2025-07-22 00:54:46 +02:00
Dien-Nhung Nguyen 6cb2f90805 add splash speed and led brightness config (#74) 2025-02-20 09:21:17 +01:00
Dien-Nhung Nguyen 647e653d23 fix: mismatched function prototypes (#69)
Co-authored-by: Mario Behling <mb@mariobehling.de>
2025-02-19 08:53:21 +01:00
Dien-Nhung Nguyen 4e556ab11f Add next gen profile and configurations (#67)
* fix: crash in picture animation

* ble: add next gen profile

* force read header from flash anyway

* fix: bmlist: mem leak

* feat: add reset option after legacy transfers
2025-02-17 10:05:23 +01:00
Dien-Nhung Nguyen 512134607b feat: ble: add battery level characteristic (#66)
App might read battery level from characteristic/service uuid: 0x2A19/0x180F
2025-02-10 10:11:52 +01:00
lundril 03e8ecb921 LED: Fix artefacts. (#61)
* LED: Fix artefacts.

Basic idea to change the state of the Pins:
1) Tri-State all (will TURN OFF all LEDs)
2) Define correct High/Low value for Pins
3) Drive pins which need driving (will TURN ON correct LEDs)

* leddrv: Different implementation.

Fix artefacts when using high brightness.
Highter drive strength if more than 5 LEDs need to be turned on.

* Support 4 different brightness levels.
2025-01-01 16:23:13 +01:00
Dien-Nhung Nguyen 9cda33787c automatically embedding version numbers (#53) 2024-10-21 15:06:13 +02:00
François Cartegnie bb33a6d82e Merge pull request #50 from kienvo/batt-indicator
feat: Charging status
2024-10-04 15:37:42 +07:00
François Cartegnie c2fbdd3fc3 Merge pull request #55 from kienvo/usbc-ver
feat: Add a build option for USB-C version
2024-09-30 16:20:06 +07:00
Dien-Nhung Nguyen-Phu b30731ff6c feat: add build option for usb-c version 2024-09-29 14:08:42 +07:00
Dien-Nhung Nguyen-Phu 907bf59055 add animation while charging
- add 5x7 font
- add animation
- display version after the animation end
- add BOOT state for switching to normal mode while charging
2024-09-29 09:44:22 +07:00
Dien-Nhung Nguyen-Phu 12ce17a6cd add charging status 2024-09-29 09:44:08 +07:00
Dien-Nhung Nguyen 2a730ef9f6 feat: play all available bitmap slots sequentially (#49)
Resovles: #40

Changes:

- Add return step state to animation functions
- Add method to get head node from bitmap list
- Add auto change to next bitmap depend on `is_play_sequentially`
2024-09-17 15:18:37 +02:00
Dien-Nhung Nguyen 68e4ce488d fix: crash loop on new chip (#45)
changes: skip reading bitmaps on invalid magic header
2024-09-05 17:30:40 +02:00
Dien-Nhung Nguyen a8b32e91b6 animation: add Bluetooth animation in download mode (#17) 2024-08-27 15:48:37 +02:00
Dien-Nhung Nguyen c95faf32a6 Add animations (#15)
* animation: add xbm animations

* refactor: correct framebuffer terminology

* animation: add animations and effect

* animation: timing with TMOS scheduler
2024-08-27 15:08:24 +02:00
Dien-Nhung Nguyen-Phu c3912e01a2 usb: add cdc-acm serial and write to flash 2024-07-11 22:18:56 +07:00
Dien-Nhung Nguyen-Phu 49fc27a23e usb: add hiddev and write to flash 2024-07-11 22:18:56 +07:00
Dien-Nhung Nguyen-Phu 4f3b6f4283 usb: handle device request and route to interfaces 2024-07-11 22:18:56 +07:00
Dien-Nhung Nguyen-Phu a57090ead9 usb: enable debug log over uart 2024-07-11 22:11:21 +07:00
Dien-Nhung Nguyen-Phu 86e6f0db4d feat: save received data from BLE to flash 2024-06-23 19:44:32 +07:00
Dien-Nhung Nguyen-Phu 8274cab154 feat: add initial Bluetooth LE module 2024-06-23 19:33:13 +07:00
Dien-Nhung Nguyen-Phu 2383bf65e5 fix: incorrect fb access 2024-06-23 18:07:07 +07:00
Dien-Nhung Nguyen-Phu af1ffccd01 fix: fb linked list misplaced 2024-06-23 17:56:43 +07:00
Dien-Nhung Nguyen-Phu 3e9252f426 fix: missing deallocating 2024-06-15 12:19:16 +07:00
François Cartegnie 98a741d933 Merge pull request #16 from kienvo/power-off
Add entering power-off mode
2024-06-13 15:31:18 +07:00
Dien-Nhung Nguyen-Phu 3ababf9fdf btn: add entering power-off mode 2024-06-13 13:46:49 +07:00
xieve 80c6508181 fix: first leds of the first two columns are switched 2024-06-13 00:07:57 +07:00
Dien-Nhung Nguyen-Phu a69b87e037 fb: modularized 2024-06-11 15:05:21 +07:00
Dien-Nhung Nguyen-Phu 6d09a8bb50 button: add brightness adjustment 2024-06-11 14:47:21 +07:00
François Cartegnie 1ae34de744 Merge pull request #13 from kienvo/xbm-support
Add support for .xbm bitmap file
2024-06-11 11:29:21 +07:00
Dien-Nhung Nguyen-Phu 43416a62b9 button: add entering bootloader on KEY2 long press 2024-06-10 19:28:00 +07:00
Dien-Nhung Nguyen-Phu 799d8e43b5 button: add basic button functionalities
- Provided a way to set handler for each button one-press/long-press
- Debouncing with RC filter and Schmitt trigger
2024-06-10 19:26:48 +07:00
Dien-Nhung Nguyen-Phu 8815700322 Add support for .xbm bitmap file
.xbm is easy to include in C as source file. It could be viewed
and edited directly without need to be converted between images
and C array.
2024-06-10 12:34:37 +07:00
Dien-Nhung Nguyen-Phu 90cdb61063 led: add basic Charlieplexing scan 2024-06-03 11:48:18 +07:00
Dien-Nhung Nguyen-Phu 7d7389cac5 init blink project
generated project from EVT
2024-06-03 11:33:00 +07:00