Hey,
I'm trying to write a quick lightweight library that allows to implement the basic features of the display on a AVR atmega32u4 using arduino bootloader (same controller as an arduino leonardo).
I want to use the SPI interface, since uart is needed for some other part of my project and I2C is said to be difficult on this one.
I bought this display, it works using the demo code so there's no problem with the hardware (eg a pin that's not soldered etc). http://www.digole.com/index.php?productID=883
I am fairly sure the wiring is right, I'll put it here as well to be sure:
Vcc - Vcc
MOSI - Data
SCK - CLK
SS (not the one from the device, this is just a pin I assigned to this job) - SS
GND - GND
MISO on controller is left floating, tying it to ground or to MOSI doesn't change anything, except that it allows me to read my data back.
Tying SS to ground didn't change anything.
Here's the code, any thought on what could be wrong? Writing "CL" followed by "CS0" should simply clear the screen, from what I've understood, I've added CS0 in order to make sure the clear screen command is applied as said by the datasheet.
http://pastebin.com/i24MQ1hk
I'm not too fund of using a software SPI while I have hardware available, else I'd have copied the library more.
Cheers