-
I have an ssd1306 display and some other devices on an i2c bus on an esp32-c3. The devices use embedded:io/I2C and as soon as I add |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
@phoddie would you mind giving me a quick opinion on the above question? As it stands I'm probably going to port the ssd1306 driver to embedded:io/i2c this week-end but I'd really prefer not to have to do that... |
Beta Was this translation helpful? Give feedback.
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.