TFT_ILI9163C Works

Sun Jun 07, 2015 7:02 pm
EDIT: I used a different Version, sry. Current Download Link is linked

The TFT_ILI9163C Library works without modification for me :)
If the screen isnt used completely, change the board design in the header file (Line 140).

Testing the examples, seems like the Cube example doesnt work. But man, the bubble example looks just freakin amazing, thanks to all the speed :D EasyScroll seems to do nothing.


Sun Jun 07, 2015 9:36 pm
… another notch on the soldering iron handle.

Mon Jun 08, 2015 1:57 pm
mrburnette wrote:… another notch on the soldering iron handle.

Mon Jun 08, 2015 4:55 pm
Ok, i screwed up. seems like i just extracted one of the library zips which i downloaded from github. and the one that worked seems to either be a custom one or a older, official one. Soo…. I just uploaded the Version which works and i will take a look at the changes they did and adapt it into the new version.


Download Link


Mon Jun 08, 2015 7:13 pm
Strawberry, the latest working ILI9163C library should be part of the master repo on Roger’s github account.

EDIT: Looks like I didn’t push that one to Rogers repo. I’ll do it soon.
At the moment the latest version should be in my repo at

If that one has any problem let me know.
The file you linked here shows my modifications for the STM32F1, DMA support, etc, but I can’t say if that is the very latest without looking at all the code as it had small modification over the a period of time.

EDIT: the version in your zip is from 4/21. After that there were small changes to the cube example, a second one added with another 2 cubes in the same screen, and small edits, but nothing major to the library itself except moving some #define lines to the top of the header file to make those more visible, and those control whether DMA will be used or not, whether 16bit transfers will be used or not, and another optimization that results in bigger but faster line functions.

Mon Jun 08, 2015 10:01 pm
Oh ok, didnt knew that is was yours ^^. Thanks for the link. And for the port :)


Tue Jun 09, 2015 8:56 pm

Will you actually update it to 0.9 before pushing it into the repo?

Im actually curious why he published it for ESP :D


Wed Jun 10, 2015 10:31 pm
Hey, do you know why the bigPicture example doesnt compile?


Thu Jun 11, 2015 12:11 am
I don’t remember if I tested that one before. I won’t have any time before the weekend to test though.

The cube one was working fine, and in fact I used it’s code to make an example of 2 tasks running at the same time for CoOS and FreeRTOS.

EDIT: Just had a moment to test the bigpicture example. That is a batman picture that I remember now it worked before, and still works fine for me.
If you get compile errors copy them here to see what could they be related to.

Thu Jul 02, 2015 3:47 pm
@victor_pv: does your TFT_ILI9163C library make use of the original Adafruit_GFX library, or Adafruit_GFX_AS under
Arduino_STM32/STM32F1/libraries/Adafruit_GFX_AS renamed to Adafruit_GFX?

Both Adafruit_GFX and Adafruit_GFX_AS work with TFT_ILI9163C, I’m just wondering which one is the best one to use ;)

Thu Jul 02, 2015 9:06 pm
I don’t think the Adafruit one has the extra fonts and additional graphic/font functions of the _AS version. For example the “LED” font used here..
Image… comes from the AS version.

Mon Oct 31, 2016 4:23 pm
I just spent a couple of hours wrestling with one of the small 1.44 in. ILI9163 displays, before the penny finally dropped and I got all the pins connected correctly.

Here is the demo sketch, with some comments to aid those following behind… :D

The display had been lying in my pile of stuff I really should get round to testing since it, and its identical twin arrived in the post about six months ago. :roll:

// Henry's Bench
// 1.44" 128 * 128 SPI V1.1 Display Tutorial
// Modified by Andy Hull with example pin map for ease of use with an STM32F103XXXX board see

#include <SPI.h>
#include <Adafruit_GFX.h>
#include <TFT_ILI9163C.h>

// Definition of colours
#define WHITE 0xFFFF
#define BLUE 0x0000FC

Connections to an STM32F103CXXX board as follows. (Wire colours for reference only, clearly you can use whatever colours you please).

NOTE: While most of the cheap "ILI9163C 128x128 TFT" boards will probably work you may also need to set the board type in TFT_ILI9163C.h
Also, the STM32F103XXX boards are 3v3 devices, as is the display, so you can in fact short out the link across the regulator on the display and power it directly from the 3v3 on the STM board.

Pinout - (TFT => stm32duino)

LED to 3.3V - Orange - Could also be taken to a suitable pin + transistor to drive the backlight.
NOTE: The backlight will probably draw far too much current for one GPIO pin to handle unbuffered.

SCK to PA5 - Yellow - STM32 -> SPI1_SCK - These two SPI pins are hardware defined pins
SDA to PA7 - Greeen - STM32 -> SPI1_MOSI -

- The exact pin number of the next three pins are not critical, you should be able to use and GPIO, update the below #defines and it should work.
A0 to PB6 - Blue
RST to PB5 - Violet - Can also be tied to STM32_NRST, so save a GPIO pin.
CS to PB7 - Grey

GND to GND - Brown
VCC to 3.3V - Red

// Additional SPI1 pins.
#define RST PB5
#define DC PB6
#define CS PB7

// Declare an instance of the ILI9163
TFT_ILI9163C tft = TFT_ILI9163C(CS, DC, RST);

void setup() {

void loop(){

unsigned long testText() {

tft.setCursor(29, 63);
tft.setCursor(29, 73);
tft.println("SPI ILI9163C");
tft.setCursor(15, 83);

Tue Nov 01, 2016 4:17 pm
Well I’m not sure how useful turning $10 worth of boards in to a $2 panel meter is, but this is what I came up with to demo the little screen.

Most of the credit lies here… … -graphic-/

RIMG0963_small.JPG (163.9 KiB) Viewed 3175 times

Tue Nov 01, 2016 5:26 pm
@Andy: FYI: a faster sin and cos … 588#p19588

Tue Nov 01, 2016 7:45 pm
Thanks Andy

Can I add it to the examples ?

Tue Nov 01, 2016 10:14 pm
Pito wrote:@Andy: FYI: a faster sin and cos … 588#p19588

Tue Nov 01, 2016 10:15 pm
RogerClark wrote:Thanks Andy

Can I add it to the examples ?

Tue Nov 01, 2016 10:33 pm

I’ll put it on my To Do list ;-)

Wed Nov 02, 2016 12:40 am
RogerClark wrote:OK

I’ll put it on my To Do list ;-)

Wed Nov 02, 2016 1:18 am
Added to git. Enjoy… :D … alog_Meter
Believe it or not there is space on that little 1.44″ screen to squeeze in two meters, so you could use it for stereo VU meters or a CC CV lab supply.
I may have a crack at updating the demo to show two separate meters. You will need good eyesight to read them accurately though ;)

Thu Dec 01, 2016 7:15 pm
… the display also works with a cut down version of the Pig-O-Scope. Details here => viewtopic.php?f=19&t=107&start=350#p20705

Thu Dec 22, 2016 1:57 pm

which arduino version and SAM version did you use to complies, i try many them still no luck always got error.

Thu Dec 22, 2016 8:51 pm
According to the IDE

Using library TFT_ILI9163C at version 0.9 in folder: /home/ahull/Arduino/libraries/TFT_ILI9163C
Using library Adafruit_GFX_Library at version 1.1.5 in folder: /home/ahull/Arduino/libraries/Adafruit_GFX_Library

Leave a Reply

Your email address will not be published. Required fields are marked *