Skip to content
Discussion options

You must be logged in to vote

I2C and Pin of course have analogues in CircuitPython, so that should be easy. Note that adafruit_bus_device manages locking the I2C bus when it's in use. I suggest you look at a CircuitPython library that's similar to the I2C device you have. Or maybe there is already a CircuitPython library. If you're not sure, say what it is.

As for keypresses, have you seen keypad? https://learn.adafruit.com/key-pad-matrix-scanning-in-circuitpython

We have supervisor.ticks_ms() instead of time.ticks_ms(), and we also have the adafruit_ticks library. Also note keypad includes timestamps for each key transition.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@dhalbert
Comment options

Answer selected by crecine
@crecine
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants