Rewrite XMOS LCD driver for a LED display or try to port exi Topic is solved

If you have a simple question and just want an answer.
User avatar
aclassifier
Respected Member
Posts: 487
Joined: Wed Apr 25, 2012 8:52 pm

Rewrite XMOS LCD driver for a LED display or try to port exi

Post by aclassifier »

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:

  1. Branch GitHub, build a wrapper around it, callable from XC, push back to GitHub. It needs a frame buffer.
  2. Write my own in xC, based an Adafruit's code, my needs and the data sheets
  3. Pull down an XMOS LCD driver (which?) and hand-merge that with the Adafruit code (what would be left of the XMOS design then?)
  4. Perhaps you already have one?
  5. 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

 

 



--
Øyvind Teig
Trondheim (Norway)
https://www.teigfam.net/oyvind/home/
View Solution
User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Post by sethu_jangala »

The best starting point for you is to look at the following LED Tile demo:

https://github.com/xcore/sw_led_tile_controller

The demo is based on G series devices and old version of tools. So, there will be some changes on L series devices and with latest version of tools. But, you can look at the implementation using LED driver MBI5030, MBI5031 and MBI 5026.