Skip to content

Multi Button and IR support #62

Closed
Closed

Description

@DaveDischord

I don't know if it'd be of any use, but a button library I've come across TTBOUNCE, allows for some defined button actions/callbacks.

Activity

  1. Mariu86 commented on Oct 19, 2018

    @Mariu86

    For me will be a good addition , my wife it's not a smartphone fan and a button whith multi function and ir sensor for a remote control will be the best code for all my ledstrips in my house! Thanks in advance Aircoookie for everything you do whith this !!!

  2. Aircoookie commented on Oct 20, 2018

    @Aircoookie
    Member

    Thank you! I'll work on this soon. With macros, you already have the possibility to set different actions for button short/long press, but I want to add double/triple click detection as well as support for more buttons (you will need to add a pullup resistor to the other buttons though since on most ESPs, only gpio0, the current button pin, has a built-in pullup)

    I can't work on IR right now since I don't have the required hardware for testing, but I have some IR receivers and remote lying around somewhere. Just need to find them...

  3. changed the title [-]Button Library[/-] [+]Multi Button and IR support[/+] on Oct 20, 2018
  4. Mariu86 commented on Oct 22, 2018

    @Mariu86

    The ir sensor it's a very good addition , I will use it with Alexa + Logitech harmony/ brodlink and I will change not only the brightness and on/off , we can change the color and effects almost anything.

  5. raymiec commented on Nov 21, 2018

    @raymiec

    not sure much space you have left, i used a library not long ago to make an ir blaster for the tv, if that can be included it would be pretty straight forward one would think.

    Another solution would be is to have a single ir receiver hooked up to an esp with an api. Means we could control various lights and also other devices across the network.

    I might post an example here soon actually i kinda want to make it.

  6. raymiec commented on Nov 22, 2018

    @raymiec

    Noticed theres code for ir already lol, still prefer sep esp, will output info to p3 display,

    Here's some very basic code that will receive an IR command and call an api, i.e Wled.
    Load the sketch onto an esp, hook up led receiver to D5. You will need to map your remote, just open serial monitor and you can watch incoming commands when you push any button.

    I'll finish this off as soon as i soon as i have time but it's a starting point for anyone else who wants to give it a go.

    I've mapped a couple of buttons to control brightness and another couple to randomly choose effects.

    https://gist.github.com/raymiec/b1b407275db1e2dc96c93d7d2d7caafd

  7. aenertia commented on Oct 20, 2019

    @aenertia
    Contributor

    I got the IR8266Remote library working fine with an esp32 - but obviously needs json/api and web hooks for it to be more than a usemod toy

  8. added a commit that references this issue on Apr 8, 2020
  9. added this to the 0.12.0 milestone on Sep 27, 2020
  10. modified the milestones: 0.12.0, 0.13.0 on Apr 6, 2021
  11. added a commit that references this issue on Aug 18, 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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions