Commit Graph

93 Commits

Author SHA1 Message Date
hueso
6a72b8c470 LED animation @ TMR0 ISR
Some checks failed
Badgemagic Firmware build / build (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
2026-02-10 20:42:14 -03:00
hueso
caaa1758a0 fix compiler warnings
Some checks failed
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
Marco A. Gutierrez
1d46c5edd1 Merge pull request #120 from marcoag/fix_build_workflow
Move toolchain location to community mirror.
2026-01-01 20:47:12 +01:00
Marco A. Gutierrez
9db6a55518 Move toolchain location to community mirror.
Signed-off-by: Marco A. Gutierrez <marcogg@marcogg.com>
2025-12-29 23:01:54 +01:00
Marco A. Gutierrez
13fcf9232b Replace MounRiver Toolchain links with updated ones
Updated MounRiver Toolchain links in README.
2025-12-29 22:23:10 +01:00
Marco A. Gutierrez
267dcfd475 Update MounRiver Toolchain links in README.
Removed the MounRiver Toolchain link and added a community mirror link.
2025-12-29 22:18:29 +01:00
Hong Phuc Dang
a794becdb9 Merge pull request #116 from bessman/doc/readme-bootloader
Clarify bootloader instructions
2025-12-28 15:49:27 +01:00
Alexander Bessman
72b3310851 Add firmware update instructions to README
Added instructions for updating firmware without battery removal.
2025-12-28 12:58:04 +01:00
Alexander Bessman
11c0e31f3f Fix README.md for clarity on dmesg command 2025-12-28 12:55:33 +01:00
Alexander Bessman
d8606ef0d9 Fix typo in README about ISP mode 2025-12-28 12:51:44 +01:00
Alexander Bessman
6093e588f3 Clarify bootloader instructions 2025-12-28 12:49:39 +01:00
Padmal
c299d578bb docs: updated readme with reset command (#109) 2025-08-31 13:00:46 +02:00
Dien-Nhung Nguyen
f625f57b02 docs: add an example for streaming feature (#99) 2025-07-22 00:54:46 +02:00
Jhalak Upadhyay
ac64530847 Merge pull request #89 from kienvo/shorting-instruction
chore: update readme for shorting instruction
2025-06-04 16:51:19 +05:30
Dien-Nhung Nguyen-Phu
331ae9d7c6 chore: update readme for shorting instruction 2025-06-04 15:15:49 +07:00
Jhalak Upadhyay
2bbecf2b3f chore: added the documentation for flashing firmware from windows. (#83)
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Co-authored-by: Dien-Nhung Nguyen <kein@kienlab.com>
2025-03-19 17:24:49 +07: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
68148af209 docs: add next-gen profile (#71) 2025-02-19 08:52:49 +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
Dien-Nhung Nguyen-Phu
03e30b4b24 chore: fix missing an image in README 2025-01-08 00:36:06 +07:00
Aditya Gupta
96ef72ce55 chore: update readme with correct repo refs 2025-01-01 22:16:28 +00: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
Dien-Nhung Nguyen
321677cf9b chore: Update README for Installation, Usage and Development (#58) 2024-10-08 03:35:55 +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
88f4bca38b Merge pull request #57 from froscon2024/patch-1
Update README.md - Use the exact chip name CH582M
2024-10-04 15:36:10 +07:00
froscon2024
22f447c12e Update README.md - Use the exact chip name CH582M
The exact chip number is CH582M on the badges. Because there also exist a CH582F lets make the difference clear that its the M version.
https://github.com/ch32-rs/wchisp?tab=readme-ov-file#tested-on
2024-10-03 14:54:47 +00: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
44a03c9e39 chore: update CI build for USB-C version 2024-09-29 14:46:10 +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
ea14dd8ac5 chore: add release drafter (#47) 2024-09-08 19:59:12 +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
François Cartegnie
f5874d6073 Merge pull request #35 from kienvo/usb
feat: Receive data over USB
2024-08-20 13:43:09 +07: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
515c8a8eb9 usb: remove usbdev from StdPeriphDriver
The library only have 4 endpoint supported while the chip have capable
of 8. And its design is kind of cumbersome.
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
François Cartegnie
b25d62d136 Merge pull request #31 from kienvo/ble-save
feat: Save received data from BLE to flash
2024-07-09 08:46:46 +02:00
François Cartegnie
a6c62295e9 Merge pull request #30 from kienvo/ble-init
feat: Bluetooth LE initial setup
2024-07-09 08:46:19 +02:00
François Cartegnie
69b530cbbb Merge pull request #29 from kienvo/fix-fb
fix: Out of bounds on framebuffer access
2024-06-24 14:01:44 +02:00
François Cartegnie
0d44481e1e Merge pull request #28 from kienvo/fix-linked-list
fix: Framebuffer linked list is misplaced on append
2024-06-24 14:01:14 +02:00