Skip to content

pins/i2c and embedded:io/I2C cannot be used on the same bus? #1154

Answered by phoddie
tve asked this question in Q&A
Discussion options

You must be logged in to vote

Apologies. I overlooked this.

You are correct - the two I2C implementations aren't intended to be used together. I took another look at supporting that, but it is a fair amount of work. I'd rather put that time into migrating forward to the ECMA-419 APIs.

The SSD1306 is pretty simple. We actually have a basic pure JavaScript driver that works with an early draft of ECMA-419. It should be straightforward to get working with the latest. The pixel swizzling would be faster in C, but that's just an optimization. It could/should probably be updated to support dithering using the techniques of the gdew0154m09 driver (used for M5Core Ink). I can post that driver later, if it would help.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@phoddie
Comment options

Answer selected by tve
@tve
Comment options

@phoddie
Comment options

@tve
Comment options

@tve
Comment options

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