MCURTC:SetBatteryEmptyLEDPattern

From 3dbrew
Revision as of 01:59, 27 December 2023 by Golem64 (talk | contribs) (→‎Description: added more details and better understanding)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Request[edit]

Index Word Description
0 Header code [0x00420040]
1 4 bytes of animation sequence. Read in the order they were sent, but their bits are read backwards to create the sequence (said sequence is read both on the power LED and the notification LED). 1 = On, 0 = Off, there is no way to change the color with this service call

Response[edit]

Index Word Description
0 Header code
1 Result code

Description[edit]

This is used for controlling the notification LED when the power is below 5%. The changes made with this service call are immediate (doesn't need a console reboot, the new sequence will be read after the current sequence finishes a loop) and "permanent" (they will stay upon reboot, but they can be changed again with another call) To reset to default, you can send the byte 0x55 4 times (corresponds to the following bits : 01010101, which read backwards makes a simple blinking LED sequence)