I have a startKIT that I'm going to use to control a small aquarium. For several reasons I wanted a bitmapped LED display. So I bought a monochrome display from Adafruit [1], with I2C. I also downloaded their driver, C++ for the Arduino [2]. It's a convenient type C++ that perhaps could have been in C. And in many ways I am not fascinated by its architecture. I have downloaded the XMOS module_i2c_master and am going to use it (and add ack support, I have had that since my first I2C driver from an 8051 in 1985). However, I do need advice on the LED driver:
- Branch GitHub, build a wrapper around it, callable from XC, push back to GitHub. It needs a frame buffer.
- Write my own in xC, based an Adafruit's code, my needs and the data sheets
- Pull down an XMOS LCD driver (which?) and hand-merge that with the Adafruit code (what would be left of the XMOS design then?)
- Perhaps you already have one?
- Other?
I think perhaps I like 2 best. What do you think? And, is there a generic interface API I should support if I were smart? If so, where?
By the way, I do blog this [3].
[1] - adafruit monochrome 128×32 I2C OLED graphic display PRODUCT ID: 931, see
http://www.adafruit.com/products/931
[2] -
https://github.com/adafruit/Adafruit_SSD1306
[3] - My XMOS notes, see
http://www.teigfam.net/oyvind/home/tech ... xmos-notes