espressif / esp-apple-homekit-adk

This is a port for Apple's Open Source HomeKit ADK
623 stars 64 forks source link

Controlling Multiple pins from single accessory #26

Open manvish opened 3 years ago

manvish commented 3 years ago

I want to control multiple pins (3 GPIO and 3 PWM) from iphone Home App. I have successfully controlled one pin from method but i dont know how to control multiple pins. pls help me with this issue,

pedros89 commented 3 years ago

Hello, yes I am trying to do the same. I need to make the prototype and then enroll to MFi program for my RGB lamp and tried with the fan example esp-homekit-sdk but with a multi-meter I noticed that there wasn't any voltage change on any of the GPIOs. Can I ask how did you make to control at least one pin? thank you. My aim would be to have the SDK for RGB lamp and know which are the 3 PWM pins.

ShareCat commented 2 years ago

You can modify this func : HandleLightBulbOnWrite()