Skip to content

Library for driving ILI9225 TFT LCD conotroller based on a PIC18F26K42. Also compatible with OTM2201A LCD controlllers.

License

Notifications You must be signed in to change notification settings

BasicCode/ILI9225

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ILI9225 (and OTM2201A) Libraries

This is a simple, cut-down library for the ILI9225 (and OTM2201A) LCD controller chips. Currently contains two versions; one for PIC, and another for STM32 micros. They are designed to be easily adaptable to ther architectures as needed.
These libraries only contain the bare essentials to run the LCD and write some text. It is expected that graphic functions are added seperately.

  • This project uses documentation provided by some random eBay seller. License unknown, credited in code.

Usage

These libraries only provides a few basic functions to get started.

  • Modify the ILI9225.h file with your own pin and SPI bus definitions to suit your project.
  • Initialise the SPI module on yourself.
  • Initialise the LCD:
lcd_init();
  • You're ready to go. It is useful to clear the screen manually with:
fill_rectangle(0, 0, WIDTH, HEIGHT, COLOR_BLACK);

You can set the display driver to draw to the display in either portrait or landscape orientation by changing the LANDSCAPE flag in the header file:

#define LANDSCAPE 1 //1 = Landscape, 0 = Portrait



Feel free to add functions and modify as required. Licensed under GNUv3.

About

Library for driving ILI9225 TFT LCD conotroller based on a PIC18F26K42. Also compatible with OTM2201A LCD controlllers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages