d0k3 / GodMode9

GodMode9 Explorer - A full access file browser for the Nintendo 3DS console :godmode:
GNU General Public License v3.0
2.09k stars 190 forks source link

[BUG] Info LED code making the LED pulse 32 times faster than intended #772

Closed TuxSH closed 1 year ago

TuxSH commented 2 years ago

3dbrew and by extension GodMode9 are wrong about the notification LED data format and units

The color data is u8[32] per color component, each index representing a "frame". The MCU runs the periodic task of updating that LED at a 512Hz rate.

See here: https://github.com/SciresM/boot9strap/blob/master/stage2/arm9/source/utils.c#L89

Hope this helps.

d0k3 commented 2 years ago

Thanks @TuxSH, great find! @Wolfvak - since you did all the hardware stuff, do you know which places we will need to fix?

Wolfvak commented 2 years ago

All that needs changing is this code https://github.com/d0k3/GodMode9/blob/master/arm11/source/hw/mcu.c#L117-L151