Difference between revisions of "MCURTC:SetInfoLEDPattern"

From 3dbrew
Jump to navigation Jump to search
Line 9: Line 9:
 
|-
 
|-
 
| 1
 
| 1
| ?
+
| Animation
 
|-
 
|-
 
| 2-9
 
| 2-9
| Red pattern
+
| u8[32] Red pattern
 
|-
 
|-
 
| 10-17
 
| 10-17
| Green pattern
+
| u8[32] Green pattern
 
|-
 
|-
 
| 18-25
 
| 18-25
| Blue pattern
+
| u8[32] Blue pattern
 
|}
 
|}
  
Line 36: Line 36:
 
=Description=
 
=Description=
 
This is used for controlling(including blinking) the notification LED. MCU module uses [[I2C_Services|I2C]] service command 0x001100C2 to write the input 0x64-bytes to MCU [[I2C]] register 0x2D.
 
This is used for controlling(including blinking) the notification LED. MCU module uses [[I2C_Services|I2C]] service command 0x001100C2 to write the input 0x64-bytes to MCU [[I2C]] register 0x2D.
 +
 +
=Animation=
 +
{| class="wikitable" border="1"
 +
|-
 +
!  u8 delay
 +
!  u8 smoothing
 +
!  u8 loop_delay(?)
 +
!  u8 ???
 +
|-
 +
| 0x01 = many patterns per second
 +
0x3F = ~64pps (~0.502sec)
 +
 +
0x81 = ~32pps (~1sec)
 +
 +
0x00 = least patterns per second
 +
| 0x00 = no smoothing
 +
 +
0xFF = insane smoothing
 +
| 0x00 = no pattern looping delay
 +
 +
0x20 = ~2000ms delay before starting again
 +
 +
0xFF = huge delay between pattern loops
 +
| ???
 +
|}

Revision as of 22:06, 13 September 2016

Request

Index Word Description
0 Header code [0x003B0640]
1 Animation
2-9 u8[32] Red pattern
10-17 u8[32] Green pattern
18-25 u8[32] Blue pattern

Response

Index Word Description
0 Header code
1 Result code

Description

This is used for controlling(including blinking) the notification LED. MCU module uses I2C service command 0x001100C2 to write the input 0x64-bytes to MCU I2C register 0x2D.

Animation

u8 delay u8 smoothing u8 loop_delay(?) u8 ???
0x01 = many patterns per second

0x3F = ~64pps (~0.502sec)

0x81 = ~32pps (~1sec)

0x00 = least patterns per second

0x00 = no smoothing

0xFF = insane smoothing

0x00 = no pattern looping delay

0x20 = ~2000ms delay before starting again

0xFF = huge delay between pattern loops

???