Skip to content

Can't toggle SW1 with GPIO0 #159

Closed
Closed

Description

@limpkin

unless I'm mistaken, this should allow me to switch on & off the LEDs with the push button on the lightcrafter board

Image

Activity

  1. limpkin commented on Oct 26, 2026

    @limpkin
    Author

    for the record:

    Image
  2. ewowi commented on Oct 27, 2026

    @ewowi
    Collaborator

    Thanks for the report, and the schematic helped. The bug was in the card, not in your board or settings.

    What went wrong: a new button row starts with no pin (−1), but the card drew the pin as a slider, which cannot show −1, so it read 0. Your row was still unset, so the button was never read. Choosing 0 changed nothing, since the slider already showed 0.

    What changed (in #157, going into main and then the latest release):

    • The pin is a number field, showing −1 for "no pin". Typing 0 sets GPIO0. The Analog card had the same bug and gets the same fix.
    • A pin past the chip's last GPIO is refused rather than silently turned into another pin.
    • Every field in a button row has its own help line (screenshot below), as do the rows of the other list cards.

    How it works for SW3 once you're on that release:

    1. Services → Button → add a row.
    2. Set pin to 0. activeLow stays on active low, since SW3 pulls GPIO0 to ground.
    3. Set target to switch, number 1 (Control.switch1, the lights on and off), kind toggle.

    Each press of SW3 then switches the lights on or off, and the card's status line confirms each press.

    Until then, a work-around on your current build: drag the pin slider away from 0 and back to 0, which stores the pin.

    When merged in latest, you can press help and see help on the fields:
    Image

  3. added
    bug
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions