Skip to content

cosmok82/ControlLCD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ControlLCD

TFTM1802 SPI Display Library for CY8CKIT-049-42xx


Author: Cosimo Orlando.
Blog: http://creativityslashdesign.tk/

Description: Provides a demo of SPI LCD Library functionality on a display TFTM1802 (S6D02A1\ST7735), tested with the board CY8CKIT-049-42xx.
CHANGELOG (notable new features or fixes) ---------

Beta 1.1

Added:

  • Adds Adafruit font library (Thanks to Adafruit GFX :D )
  • void setWidth(uint8_t d)
  • void setHeight(uint8_t d)
  • uint8_t getWidth(void)
  • uint8_t getHeight(void)
  • void RotSetting(uint8_t m)
    (!) it sets the display rotation from 0° to 270° degrees
  • char* toChar(uint8_t d)
    (!) it converts a number from 0 to 9 in a char
  • void drawChar(int16_t x, int16_t y, unsigned char c, uint32_t color, uint16_t bg, uint8_t size)
    (!) it draws a char to display
  • void print(char* text, uint32_t color, uint16_t bg, uint8_t size)
    (!) it prints a formatted text in according to screen size
  • void printN(char* text, uint32_t color, uint16_t bg, uint8_t size, uint8_t num)
    (!) it appends a number to the text and print out everything



All info on my blog.


MIT License, Copyright (c) 2014.

About

TFTM1802 SPI Display Library Beta1 for CY8CKIT-049-42xx by C/D

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages