bitbank2 / OneBitDisplay

A full featured Arduino display library for 1-bit per pixel OLED, LCD and e-paper displays
Apache License 2.0
195 stars 21 forks source link

Support for Hardware I2C (not bitbanged) #38

Closed pkourany closed 2 years ago

pkourany commented 2 years ago

Many platforms support hardware I2C vs bitbanged. In addition, the required bitbanged library is not compatible with many of those platforms (causing compile errors). Can you add I2C support that is not bitbanged and make standard Arduino calls for I2C?

pkourany commented 2 years ago

I modified the BitBangI2C lib to include my platform (PARTICLE) and modified the mySPI->transfer(bug, len) commands to the (extended, DMA-based) version on my platform.