Skip to content

hx20: FP_LED_LEVEL_CONTROL takes symbolic inputs but returns raw outputs #9

Open
@DHowett

Description

@DHowett
Contributor

Calling the FP_LED_LEVEL_CONTROL host command with set requires one of the symbolic LED brightnesses:

  • FP_LED_BRIGHTNESS_HIGH = 0
  • FP_LED_BRIGHTNESS_MEDIUM = 1
  • FP_LED_BRIGHTNESS_LOW = 2

However, calling it with get populated returns the actual stored brightness value:

  • high = 55 (FP_LED_HIGH)
  • medium = 40 (FP_LED_MEDIUM)
  • low = 15 (FP_LED_LOW)
### Write brightness 2 (low)
# ectool raw 0x3e0e b2,b0
3e0e(...2 bytes...)
 02 00                                           |..              |

### Read back (low = 15)
# ectool raw 0x3e0e b0,b1
3e0e(...2 bytes...)
 00 01                                           |..              |
Read 1 bytes
 0f                                              |.               |

Activity

hauntingEcho

hauntingEcho commented on Mar 7, 2022

@hauntingEcho
changed the title [-]FP_LED_LEVEL_CONTROL takes symbolic inputs but returns raw outputs[/-] [+]hx20: FP_LED_LEVEL_CONTROL takes symbolic inputs but returns raw outputs[/+] on Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @DHowett@hauntingEcho@JohnAZoidberg

      Issue actions

        hx20: FP_LED_LEVEL_CONTROL takes symbolic inputs but returns raw outputs · Issue #9 · FrameworkComputer/EmbeddedController