Skip to content

Add support for seesaw encoders - #771

Closed
jphastings wants to merge 4 commits into
tinygo-org:devfrom
jphastings:seesaw-encoders
Closed

Add support for seesaw encoders#771
jphastings wants to merge 4 commits into
tinygo-org:devfrom
jphastings:seesaw-encoders

Conversation

@jphastings

@jphastings jphastings commented Jun 30, 2025

Copy link
Copy Markdown
Contributor

Adds function addresses, helper functions and examples for interacting with seesaw rotary encoders, eg. Adafruit's Rotary Encoder Breakout.

I've tested with the Adafruit QT Py RP2040 and the rotary encoder breakout myself — and can confirm the current default delay used is suitable for this functionality as well (I've used the example in this PR successfully down to 250µs too, which is the default delay in the Adafruit library).

I realise the other capabilities of the seesaw don't have helper functions — is this the right approach for this repository?

If it's suitable I'll look at implementing helpers for the interrupt functionality as well 😊

ysoldak and others added 3 commits June 25, 2025 10:03
* lsm6ds3tr: avoid unnecessary heap allocations
* lsm6ds3tr: use helper functions, for readability
* lsm6ds3tr: return slice of the internal buffer on readBytes
Adafruit's Mini GPS PA1010D Module works with this device driver, but requires 0x10 as the address, rather than 0x42.

This change allows the device to be initialised with whatever i2c address is needed, while maintaining backward compatibility.

Adds new constants to allow easy configuration of both the ublox device and the PA1010D.
Adds the necessary function addresses for reading and writing encoders on a seesaw.
Also provides two helper functions to make this easier.
@jphastings jphastings changed the title feat: add support for seesaw encoders Add support for seesaw encoders Jun 30, 2025
The example has moved, so the smoke test script needs to point to the correct directory.
@deadprogram

Copy link
Copy Markdown
Member

Commit b9f2074 has been merged into dev so now closing this PR. Thank for working on it @jphastings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants