maccoylton / esp-homekit-rgbw-strip

A homekit firmware for a magic home RGBW controller
Apache License 2.0
15 stars 3 forks source link

Request #17

Closed toshibochan closed 4 years ago

toshibochan commented 4 years ago

Sorry I keep asking things! Can GPIO0 become push Button? Single press Double press Triple press And hold reset the magichome

maccoylton commented 4 years ago

Sorry I keep asking things! ...

@toshibochan what physical device do you have? None of mine have a physical button?

Sent with GitHawk

toshibochan commented 4 years ago

Is just the magichome rgbw controller without IR. I can solder wire to GPIO0 and Ground and add button. Is possible to add code?

toshibochan commented 4 years ago

I want add push button because sometimes is good if Siri not working and all is good to have option to turn on manually. And can save money because no need to buy extra wireless hue switch

toshibochan commented 4 years ago

I made this lamp using your main.bin and work great! Is cool if have a button to turn on and off manually to. 0DA86856-D309-4B79-B490-A81F3E35A170

jihao commented 4 years ago

@toshibochan I did something for my DIY controller which has a button, you may change the pins before use.

Code here: https://github.com/jihao/esp-homekit-rgbw-strip/tree/dev

maccoylton commented 4 years ago

If you are happy this works, why don't you submit a push request to add this to this repo

jihao commented 4 years ago

If you are happy this works, why don't you submit a push request to add this to this repo

Later, I made some tweak which might not be your intention.
Like turn on the light by increasing the brightness gradually just like philips hue behavior, but not perfect, it will get a slight flicker at the max brightness ...

So maybe I can extract the button feature to a seperate branch, then submit a pull request.

maccoylton commented 4 years ago

ok .. no worries

toshibochan commented 4 years ago

hi @jihao you can turn on issue page in your https://github.com/jihao/esp-homekit-rgbw-strip/tree/dev. the clone or download link is not correct.

toshibochan commented 4 years ago

Hi @jihao you git clone address not working