Skip to content

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STM32 ST7735R Display Driver

Language: C License: MIT

About

Platform agnostic lightweight C Driver for ST7735R based LCD's

Usage

Implement Methods then set them in a new McuContext struct.

McuContext MCU =
	{
			.SPIContext = &hspi1,
			.HalTransmit = HalTransmit,
			.SetDataCommandPinState = SetDataCommandPinState,
			.SetTFTChipSelectPinState = SetTFTChipSelectPinState,
			.SetSDChipSelectPinState = SetSDChipSelectPinState,
			.SetChipResetPinState = SetChipResetPinState,
			.SendCommand = SendCommand,
			.SendData = SendData,
			.Delay = Delay
	};
  • SPIContext: Reference to your desired SPI handle
  • HalTransmit: Your implemented method to transmit via SPI
  • SetDataCommandPinState: Your implemented method to toggle your desired data command pin
  • SetTFTChipSelectPinState: Your implemented method to toggle your desired TFT Chip Select pin
  • SetSDChipSelectPinState: Your implemented method to toggle your desired SD Chip Select pin
  • SendCommand: Your implemented method to send commands to the screen driver (Usually in conjunction with HalTransmit)
  • SendData: Your implemented method to send data/parameters to the screen driver (Usually in conjunction with HalTransmit)
  • Delay: Your implemented delay method

About

Driver/Library written in C for ST7735R based LCD's

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages