how to programm lcd display with simulink on raspberry pi

 Respuesta aceptada

Mark McBroom
Mark McBroom el 10 de Nov. de 2018
The interface to the display is I2C. You'll need to use the I2C Master Read and I2C Master Write blocks that come with the Simulink Support Package for Raspberry Pi .

4 comentarios

Note that you will need to compute what to send as there is no graphics block to render for it. You might want to use Computer Vision text inserter and shape inserter to build images to send.
Could someone explain how to do it?
Just sending ASCII charcaters wont work. So how excatly to build an image?
Any help would be great.
Section 8.7 of the PDF makes it clear that the SSD1306 is fundamentally a bit-mapped display. You cannot send it characters for it to convert into display.
Please remember that "characters" are not something that can be displayed. "Characters" need to be interpreted through "font family", "font size", "font weight", "font angle", and rotation.
Computer Vision insertText() and insertShape() can be used to render characters and shapes into an array that can then be sent to the device.
My question is a bit different. I need to connect to an RG1602A to raspberry pi, via simulink.
My board is Raspberry pi 3 model B
I have an i2c connection. But I dont know how to include the initialisation steps in the simulink model.
Any help would be great.

Iniciar sesión para comentar.

Más respuestas (0)

Productos

Versión

R2018b

Etiquetas

Preguntada:

el 9 de Nov. de 2018

Comentada:

el 10 de En. de 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by