KurtE
Senior Member+
Since it tuned out my 3 cheap ILI9163C displays turned out to be ST7735... displays, I thought I would play around with Paul's version of the ST7735_t3 library.
I decide to make a version using my SPIN library, which allows me to easily support the multiple SPI busses of the new boards, plus it has the code in place to say if different pins are valid for MOSI and SCK and CS... So did not have to reproduce that.
Since I was hacking it up to be using SPIN, I removed the ARM and AVR code, as after all the _t3 I think usually implies for Teensy 3.X. But I am also hacking it to still support TLC.
While doing this, I have it using SPI transactions. Also to help support SPI1, I made the code be able to handle the case where you only have one hardware CS channel available. In this case you need to use it on the DC(A0) pin. Anyway it is still a WIP, but things appear like they are working. At least with the GraphicTest program.
T3.6:
I have tried it with: CS:10, A0:9, MOSI:11, SCK:13) - i.e. default SPI pins.
Also tried with: 5, 9, 11, 13 - Tests the code with using only 1 SPI CS pin
Also tried with 5, 31, 0, 32 - Tests SPI1 again with only one CS pin.
T3.2: with default pins...
Note: There are a few diagnostic Serial.prints still in the code, but if anyone is interested in taking a look, it is in my fork in a new branch:
https://github.com/KurtE/ST7735_t3/tree/SPIN-Version
And it requires my SPIN library which is up at: https://github.com/KurtE/SPIN
I decide to make a version using my SPIN library, which allows me to easily support the multiple SPI busses of the new boards, plus it has the code in place to say if different pins are valid for MOSI and SCK and CS... So did not have to reproduce that.
Since I was hacking it up to be using SPIN, I removed the ARM and AVR code, as after all the _t3 I think usually implies for Teensy 3.X. But I am also hacking it to still support TLC.
While doing this, I have it using SPI transactions. Also to help support SPI1, I made the code be able to handle the case where you only have one hardware CS channel available. In this case you need to use it on the DC(A0) pin. Anyway it is still a WIP, but things appear like they are working. At least with the GraphicTest program.
T3.6:
I have tried it with: CS:10, A0:9, MOSI:11, SCK:13) - i.e. default SPI pins.
Also tried with: 5, 9, 11, 13 - Tests the code with using only 1 SPI CS pin
Also tried with 5, 31, 0, 32 - Tests SPI1 again with only one CS pin.
T3.2: with default pins...
Note: There are a few diagnostic Serial.prints still in the code, but if anyone is interested in taking a look, it is in my fork in a new branch:
https://github.com/KurtE/ST7735_t3/tree/SPIN-Version
And it requires my SPIN library which is up at: https://github.com/KurtE/SPIN