Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 786 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 786 Bytes

CubeMX-ST7789

Overview

CubeMX uses C code, not C++.

Adafruit distributes "Adafruit 1.54" TFT ST7789 C++ library".

It does not works in the code generated by CubeMX because C code can't detect class.

So we ported C code which based on GPIO.

Discription

Font.h

  • Size of "FONT8_n#" is 6x11 pixel, and # means ASKII code.
  • Size of "FONT2_n#" is 16x24 pixel, but only numbers and ":", "." we changed from "FONT8_n#".
  • Size of "FONT1_n#" is 24x32 pixel, but only numbers and ":", "." we changed from "FONT8_n#".

ST7789.h

  • ST7789_Init() function : Initialize function to use ST7789.h
  • ST7789_Clear() function : Define background color using (x1,y1) and (x2,y2) locaion
  • (xs,ys) in draW~ funcions means upperleft location.
  • color : 0x0000 white to 0xFFFF black.