NEWSS:SetInfoLEDPattern

From 3dbrew
Revision as of 18:12, 4 June 2018 by Valentinvanelslande (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Request

Index Word Description
0 Header code [0x000E0040]
1 u32 array index, internally this is handled as an u8. When a certain state field is zero, news-module internally sets bit0 in this index, otherwise bit0 is cleared.

Response

Index Word Description
0 Header code
1 Result code

Description

This uses the input array index value to load data from an array, the loaded data is then used with PTMSYSM:SetInfoLEDPattern.

The array index is not validated at all. Using out-of-bounds values should not be attempted at all, since invalid data with PTMSYSM:SetInfoLEDPattern can cause a brick.