Skip to content

icns-distributed-cloud/WATCH-lcd-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published