MCURTC:SetInfoLEDPattern: Difference between revisions
Added more information to the animation fields. |
No edit summary |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 35: | Line 35: | ||
=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= | =Animation= | ||
Line 43: | Line 43: | ||
! u8 smoothing | ! u8 smoothing | ||
! u8 loop_delay | ! u8 loop_delay | ||
! u8 | ! u8 blink_speed | ||
|- | |- | ||
| ''delay = seconds * 0x10'' | | ''delay = seconds * 0x10'' | ||
Line 51: | Line 51: | ||
If set to 0x00, only the first value of the pattern is played. (?) | If set to 0x00, only the first value of the pattern is played. (?) | ||
| The lower the value is, the less smoothing is applied to the pattern. Here is a visual approximation of how the smoothing works: [https://i.imgur.com/ZxdPbIw.png Smooth function.] | | The lower the value is, the less smoothing is applied to the pattern. Here is a visual approximation of how the smoothing works: [https://i.imgur.com/ZxdPbIw.png Smooth function.] | ||
| ''loop_delay = seconds * 0x10'' | | ''loop_delay = seconds * 0x10'' | ||
Since this data is represented in a u8, the precision is 1/16th of a second (0x01) and the maximum delay time is 15.875 seconds (0xFE). | Since this data is represented in a u8, the precision is 1/16th of a second (0x01) and the maximum delay time is 15.875 seconds (0xFE). | ||
Line 58: | Line 57: | ||
If set to 0xFF, the pattern is played only once. | If set to 0xFF, the pattern is played only once. | ||
| | | if smoothing is nothing, this can set LED blink speed value. | ||
|} | |} |