Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

RTOS/CC2640R2F: Interfacing SSD1306 OLED display using i2c

$
0
0

Part Number:CC2640R2F

Tool/software: TI-RTOS

Hello All,

From my understanding, in order to create a display driver for the OLED using I2C :

1. To change the SPI to I2C we have to modify the DisplaySharp Functions in DisplaySharp.c

2. To achieve the display driver for a particular Display Module (say, SSD1306 OLED), we have to modify the functions that are mapped to the Graphics_Display_Functions(in grlib.h). And as per the display example in CCS for CC26xx, these functions are mapped to  g_sharpFxns( whose definitions are found in SharpGrLib.c). So we have to modify the functions found in SharpGrLib.c to make them specifically for our required display unit. THERE IS NO NEED TO ADD FURTHER FUNCTIONS. JUST MODIFYING THESE FUNCTIONS ARE SUFFICIENT.

The TI Graphics Library APIs like Graphics_drawImage, Fraphics_flushbuffer etc when called by user would then use the g_sharpFxns to provide the data to the display and result in the output displays.

Please confirm if my understanding is correct. And also if there is anything else to be done in this regard.

Regards,

Shyam


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>