The Adafruit 2.2" uses 9-bit SPI, so D/C is the 9nth bit. But to get it to work on the rPi, the SPI controller must be patched as mentioned in the post. This is my patched version:
https://github.com/notro/linux/blob/LoS ... -bcm2708.c
When wiring, can they share any pins on the GPIO?
Well, projects using two displays, could share
reset, but one driver will then control the line for both displays. For D/C, this can't be shared between drivers.
The project is in an early phase, so documentation is a bit scarce.
But I have made a detailed howto for installing the drivers:
https://github.com/notro/fbtft/wiki/Bui ... ft-drivers
I haven't been able to write anything about
spidevices yet. But in short:
Set the values you want. Comment out a device if you don't need it.
Build the module and load it before you load the driver.
I have used
spidevices during development, but now I have arrived at a stable setup, so I have moved the info to the platform setup in arch/arm/mach-bcm2708/bcm2708.c
If anything is unclear please ask.
Setting
#define DEBUG at the very top of fbtft.c and drivers, will give debug output to
dmesg
BTW; as the Sainsmart use a ST7735R, your driver should also be able to run the Adafruit 1.8"
Yes I guess it does. I started my work based on the st7735fb.c driver. But I haven't got one, so I don't know for sure.
I'll give your driver a go tonight.
Nice, let me know how it goes.