adafruit / Wippersnapper_Components

Component Description Models for Adafruit IO Wippersnapper Beta.
MIT License
9 stars 39 forks source link

Add STEMMA QT Rotary Encoder i2c Component #198

Closed jrh4567 closed 9 months ago

jrh4567 commented 9 months ago

This pull request adds the Adafruit I2C Stemma QT Rotary Encoder Breakout with NeoPixel to Wippersnapper_Components.

Product URL: adafruit.com/product/4991

I set the subcomponents to "unspecified" and "raw" for the encoder value and button, respectively - I didn't see anything better in the list of i2c sensor types.

jrh4567 commented 9 months ago

Hi @tyeth! Thanks for your message, I've updated definition.json as you requested. It was definitely going to be confusing trying to figure out the difference between unspecified and raw.

Yes, I am going to take a stab at writing the driver, following the instructions on the guide - it looks like I'll just be porting the arduino library to C? I'll create a draft PR if I have any questions. Thanks!

tyeth commented 9 months ago

@jrh4567

Okay, that's now merged and available in the component picker, but it will have the In-Development banner to warn users that it's functionality/driver is not included in the latest release (or may be unstable/untested).

Previously our component picker had a checkbox to show the In-Development components, but with the new searchable redesign currently all components are initially shown. This will not be the case in the new year so you may need to select dev components as part of the component filtering in the future. You can also search for 'dev' to show all dev components in the picker (you'll notice it also includes the Analog 'Dev'ices ADT7410 component): image

jrh4567 commented 9 months ago

Awesome, thanks @tyeth!