oxidecomputer / oxidecomputer/hubris

LED API should expose a `set(usize, bool)` function

Open
#430 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:wave: good first issue developer-experience
Dominant language
Rust
Stars
3.6k
Forks
239
Avg merge
1d 12h
Merged PRs (30d)
23

Description

This would save me from having to write stuff like

if any_link {
    self.leds.led_on(1).unwrap();
} else {
    self.leds.led_off(1).unwrap();
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the LED API and its existing led_on and led_off functions first. Add the requested set(usize, bool) entry point with equivalent behavior, then verify that callers can use it for both LED states.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
embedded-iot
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.