Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

SSD1306 I2C OLED 128x64 PSoC 4 (CY8C4146LQI-S433)

MotooTanaka
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

Hi,

As I saw a discussion about this device

https://community.infineon.com/t5/PSoC-4/How-to-connect-an-Oled-to-CY8CKIT-041-41XX/td-p/386950

I purchased a 3 piece set from Amazon.

IMG_5409.JPG

Since I did not have (or could not find) CY8CKIT-041-41XX, 
I used TSoC (CY8C4146LQI-S433) board.

Schematic

002-schematic.JPG

Pins

003-pins.JPG

When started, monitor of starting sequence and first help message is shown in the UART (Tera Term)

001-TeraTerm_log.JPG

To display the test pattern, Enter "TestPatern" to the prompt.

IMG_5408.JPG

void do_test_pattern(void)
{
    char *ptr ;
    do_clear_display() ;
    ssd1306_fillrect(15, 10, 115, 20) ;
    ssd1306_set_color(SSD1306_BLACK) ;
    ssd1306_text_x = 16 ;
    ssd1306_text_y = 11 ;
    draw_string("SSD1306 I2C OLED") ;
    ssd1306_set_color(SSD1306_WHITE) ;
    ssd1306_line(10, 25, 120, 25) ;
    ssd1306_text_x = 28 ;
    ssd1306_text_y = 30 ;
    draw_string("PSoC Version") ;
    ssd1306_line(20, 40, 40, 60) ;
    ssd1306_line(20, 60, 40, 40) ;
    ssd1306_fillrect(50, 40, 70, 60) ;
    ssd1306_circle(90, 50, 10) ;
    
}

I'm afraid that I have not tested all the functionalies, but it seems that most of the basic functions are working.

moto

0 Likes
0 Replies