question

RizwanAhmed-3460 avatar image
0 Votes"
RizwanAhmed-3460 asked KenMaxwell-4349 commented

GUIX sample code with I2C interface for NXP Controller

I am using NXP S32K148 controller. on the board i also have UG-2864KSWLG01 display IC. I use NXP to communicate with the Display.
the display is 128 x 64 Dot Matrix OLED/PLED Segment/Common Driver with Controller. I wanted to use Azure GUIX for Display.
Can any one share sample code for Azure GUIX which uses I2C module for communication.
If any sample code also there will be helpful.

azure-rtos
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@RizwanAhmed-3460 Welcome to Microsoft Q&A forum! It's a great question.
Community Members, SME's on this topic or our team will review your scenario and circle back at the possible earliest time.

0 Votes 0 ·
KenMaxwell-4349 avatar image
0 Votes"
KenMaxwell-4349 answered KenMaxwell-4349 commented

For this type of architecture, we would normally recommend that you configure a local buffer for the GUIX canvas memory, and provide a buffer-toggle function that transfers the modified portion of the local canvas memory over I2C to the display after each drawing sequence. If you can send email to azure-rtos-support@microsoft.com, I can send you a template monochrome GUIX display driver that should help you implement this solution.

Regarding the I2C interface specifics, I'm not sure we have that particular board in-house. I would leverage the bsp and examples provided by NXP to implement the memory-to-display graphic data transfer.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

191790-gx-display-driver-monochrome-template.txt



I was able to attach the driver template as a .txt file, please rename to .c and use this example.

0 Votes 0 ·
RizwanAhmed-3460 avatar image
0 Votes"
RizwanAhmed-3460 answered RizwanAhmed-3460 edited

Hi Ken,
Thanks for the reply. The answer gave me some idea how to use it. I will go through the template file you have shared and go through and get back to you if i have any questions.
I have already created low level I2C interface which can get data from Canvas, and write to display the data coming from Canvas.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RizwanAhmed-3460 avatar image
0 Votes"
RizwanAhmed-3460 answered KenMaxwell-4349 commented

Hi ken,
I have also dropped mail to azure-rtos-support@microsoft.com, requesting for sample monochrome GUIX display driver. If you have can you share it with me plz.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@RizwanAhmed-3460 I sent the driver template via email. Let me know if you have any questions.

0 Votes 0 ·