Skip to content

BasicCode/4DSystems_Pixxi_Serial_STM32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

4D Systems Pixxi Based Displays: Serial Interface

This is a direct port of the serial display library for 4D Systems' Pixxi based display modules for use with the STM32 HAL library.
This library implements the HAL UART and GPIO features; all of the hardware serial interactions are contained in the first few functions if you need to modify them to suit your particular project.

Installation

  • NOTE: An aditional file containing the commands and other constants is required. Download Pixxi_Const4D.h from the above library and include it with your project. Add the .cpp and .h files to their respective parts of your project. The file main.cpp is included as an example to initialise the display, but your probably don't want to include this in your own project.

Usage

An example program is included in main.cpp which initialises the display, initialises the SD / FLASH storage, and displays some shaped.

  • Initialise your favourite UART port at 115200 baud, 8-bit, no parity, single stop bit.
  • Create an instance of the Pixxi Serial class with a pointer to the above UART port.
Pixxi_Serial_4DLib Display(&huart1);
  • Reset the display by pulling the RESET pin LOW for at least 2 microseconds (return to idle HIGH).
  • Set the display to LANDSCAPE or PORTRAIT
Display.gfx_ScreenMode(PORTRAIT);
  • The display may have a test pattern on it at initial boot which can then be cleared:
Display.gfx_Cls();



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

About

(Unofficial) 4D Systems Pixxi serial library for STM32.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published