adafruit / Adafruit_CircuitPython_seesaw

seesaw helper IC driver for circuitPython
MIT License
64 stars 36 forks source link

two encoders at once? #93

Closed troylball closed 2 years ago

troylball commented 2 years ago

Hi I am looking for some sample python code that will allow two encoders at the same time. I have already solders the back to change one to a different i2c #, any help would be appreciated

ladyada commented 2 years ago

do you mean circuitpython with the rotary encoder qt board?

troylball commented 2 years ago

The rotary encoder qt board 4991. I have it running with one and I soldered the back to get a second i2c # , but my limited tweeks did not work ☹

https://learn.adafruit.com/adafruit-i2c-qt-rotary-encoder/overview Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows

From: @.> Sent: Tuesday, February 1, 2022 12:29 PM To: @.> Cc: @.>; @.> Subject: Re: [adafruit/seesaw] two encoders at once? (Issue adafruit/Adafruit_CircuitPython_seesaw#93)

do you mean circuitpython with the rotary encoder qt board?

— Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fadafruit%2Fseesaw%2Fissues%2F54%23issuecomment-1027156627&data=04%7C01%7C%7Cc9ed14e466ab4f74473208d9e5b0b62b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637793369400072871%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=6hvkrf1ULj0sm8BnP1Cz8%2BdGaFCKcTP2I8uUBVGDXnI%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACHBUUJMQ2D3M7QIF7ZNJ6LUZAQ6TANCNFSM5NJ5CFYQ&data=04%7C01%7C%7Cc9ed14e466ab4f74473208d9e5b0b62b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637793369400072871%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=x2O9ygMZGIU1%2BB7ZxqZfsvt6YxWNQEJidwoyGxt5EIU%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

ladyada commented 2 years ago

do you mean circuitpython

troylball commented 2 years ago

Yes I guess I did, I am using the code from https://learn.adafruit.com/adafruit-i2c-qt-rotary-encoder/overview wit a pi Zero 2 w and maybe a pi 4.

But that gest me wondering is there just regular python code as well? If so I would like to see that as well.

Cheers, Troy

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows

From: @.> Sent: Tuesday, February 1, 2022 12:34 PM To: @.> Cc: @.>; @.> Subject: Re: [adafruit/seesaw] two encoders at once? (Issue adafruit/Adafruit_CircuitPython_seesaw#93)

do you mean circuitpython

— Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fadafruit%2Fseesaw%2Fissues%2F54%23issuecomment-1027161508&data=04%7C01%7C%7Ca05b5db72c304442bb0808d9e5b18b6b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637793372973898155%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=iXoX%2FL8gKfepMndTk0DIPixBDGc4ceFbG49MM%2BcXACU%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACHBUUIS5GWFH4AUK5I2W3DUZARU7ANCNFSM5NJ5CFYQ&data=04%7C01%7C%7Ca05b5db72c304442bb0808d9e5b18b6b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637793372973898155%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=44Y74v%2F8u993cQ6%2FHCwVbzeufym4nqm2vPYUIandvlk%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

ladyada commented 2 years ago

@jedgarpark or @kattni may already have an example they can add

jedgarpark commented 2 years ago

I built a version of this in Arduino, but I can work on a CircuitPython example.

troylball commented 2 years ago

So what are my next steps? Search their git hub repositories and reach out to them directly? Can I / should I refer to this email and say that Adafruit suggests I reach out?

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows

From: @.> Sent: Tuesday, February 1, 2022 12:43 PM To: @.> Cc: @.>; @.> Subject: Re: [adafruit/Adafruit_CircuitPython_seesaw] two encoders at once? (Issue #93)

@jedgarparkhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjedgarpark&data=04%7C01%7C%7C1b9223fc3a484276d0a508d9e5b2ca17%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637793378321954592%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=YRhViB4RRY83JWpwk06zF2FR4FK%2Fy8nb0OiCB5gbctk%3D&reserved=0 or @kattnihttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkattni&data=04%7C01%7C%7C1b9223fc3a484276d0a508d9e5b2ca17%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637793378321954592%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Z35Bl16ub3M8C%2Fmuvz0lMaE2EwU1qIuKNJvoXoNijRs%3D&reserved=0 may already have an example they can add

— Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fadafruit%2FAdafruit_CircuitPython_seesaw%2Fissues%2F93%23issuecomment-1027168604&data=04%7C01%7C%7C1b9223fc3a484276d0a508d9e5b2ca17%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637793378321954592%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=EKmDRrncERGxKxMkNL80f%2Ff7LeZU4YjnR8m7Remk4zQ%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACHBUUIAXNSOK23JV6WLQL3UZASWNANCNFSM5NJ6XCTA&data=04%7C01%7C%7C1b9223fc3a484276d0a508d9e5b2ca17%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637793378321954592%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=ALz8qQo%2Fx6MAmnIGSsiKsvH3FdvHEB84TdUlvtuqaS8%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

jedgarpark commented 2 years ago

@troylball I'll try to put together an example later today.

troylball commented 2 years ago

Thanks John, that would be appreciated, it does not need to bee too intrecit. My end goal is to use these with a TEA 5767 FM chip to convert an old radio. One button volume one button frequency. I am guessing I could run two programs at the same time but thought it would nice to see it all together.

I see your other e-mail came in thanks for that

Thanks,

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows

From: John Edgar @.> Sent: Tuesday, February 1, 2022 12:51 PM To: @.> Cc: @.>; @.> Subject: Re: [adafruit/Adafruit_CircuitPython_seesaw] two encoders at once? (Issue #93)

I built a version of this in Arduino, but I can work on a CircuitPython example.

— Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fadafruit%2FAdafruit_CircuitPython_seesaw%2Fissues%2F93%23issuecomment-1027175101&data=04%7C01%7C%7C6933b61fda6a45cba86f08d9e5b3cfe7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637793382708236667%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Pnz1ej1CGR5G%2B3Ntreb6MVjBfrj8tPrBSiArdeJhrM8%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACHBUUMOSAYOIAW3TIAAIIDUZATR3ANCNFSM5NJ6XCTA&data=04%7C01%7C%7C6933b61fda6a45cba86f08d9e5b3cfe7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637793382708392896%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=mRZkAedsi65OOV5AfwDHMt%2B9teOILuy2dFi1TReQkKA%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

jedgarpark commented 2 years ago

@troylball here's an example of two encoders https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Seesaw_QT_Rotary_Encoder_Multiples/code.py

ladyada commented 2 years ago

@jedgarpark this should go into this library as an example, @kattni can help if needed

troylball commented 2 years ago

Thanks John, that works great, and yes that should go in the library

Take care, Troy

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows

From: John Edgar @.> Sent: Tuesday, February 1, 2022 8:21 PM To: @.> Cc: @.>; @.> Subject: Re: [adafruit/Adafruit_CircuitPython_seesaw] two encoders at once? (Issue #93)

@troylballhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftroylball&data=04%7C01%7C%7Ce5c65040fa9b4a78abb008d9e5f2b8c0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637793652911375638%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Zfru%2F%2BfweVwHxP9WMmSAER5abVcIDQIh0FQM9hfyOaU%3D&reserved=0 here's an example of two encoders https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Seesaw_QT_Rotary_Encoder_Multiples/code.pyhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fadafruit%2FAdafruit_Learning_System_Guides%2Fblob%2Fmain%2FSeesaw_QT_Rotary_Encoder_Multiples%2Fcode.py&data=04%7C01%7C%7Ce5c65040fa9b4a78abb008d9e5f2b8c0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637793652911531874%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=SprhdNXKTPqUeiJULrM5Aoo7G55fNPn7f93dYVgpaRM%3D&reserved=0

— Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fadafruit%2FAdafruit_CircuitPython_seesaw%2Fissues%2F93%23issuecomment-1027512827&data=04%7C01%7C%7Ce5c65040fa9b4a78abb008d9e5f2b8c0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637793652911531874%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=mTmnC0vhHhJZJOAbOCzA%2B7yFMEPhjRdlhRWdQzjHJ6Q%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACHBUUJAEGI3JOVRYE2PWQLUZCIKRANCNFSM5NJ6XCTA&data=04%7C01%7C%7Ce5c65040fa9b4a78abb008d9e5f2b8c0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637793652911531874%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=lRvYbCpAalypOzC2ipJtsnpmmOE%2FY04zrcgXbpxv6lQ%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>

jedgarpark commented 2 years ago

it is now in the library examples