Skip to content

Migrate button-related structures and methods from temphum2 here #55

Description

@SzigetiJ

Temphum2 v2.0.0 contains the following structs and functions:

  • SButtonDebounceFlags
  • SButtonState
  • SButtonActions
  • static void _configure_button(uint8_t u8Gpio);
  • static void _button_init();
  • static void _button_cycle(uint64_t u64tckNow);
  • static void _button_isr(void *pvParam);

These are slightly generic, thus they belong to esp32basic.

Note, _button_isr() captures (and clears) every GPIO interrupt, maybe it is not the best solution. Also, not sure how to deal with [GPIO-3.14].

Activity

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

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions