Dec 22, 2022
12:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 22, 2022
12:54 AM
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.
Since I did not have (or could not find) CY8CKIT-041-41XX,
I used TSoC (CY8C4146LQI-S433) board.
Schematic
Pins
When started, monitor of starting sequence and first help message is shown in the UART (Tera Term)
To display the test pattern, Enter "TestPatern" to the prompt.
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
Labels
- Labels:
-
PSoC4 MCU
0 Replies
This widget could not be displayed.