WCH ssd1306 oled display

WCH ssd1306 oled display

Robby roboter @robby.roboter
Robby roboter @robby.roboter

Alt text

I took as a starting point already existing project that use CH32V003 ch32v003-maker-projects It have big numbers and some text but I wanted to display any text.

Alt text

// ===================================================================================
// Update Function
// ===================================================================================
void update(void) {
	OLED_drawPixel(0, 0, 1);
	char str[] = "Hello World!\n";
	OLED_print(&str);
	OLED_update();
}

int main(void)
{
	Delay_Init();
	USART_Printf_Init(115200);
	printf("SystemClk:%d\r\n",SystemCoreClock);
	
	// Setup internal peripherals
  I2C_init();

  // Setup external peripherals
  OLED_init();
  OLED_clear();
  update();

  Delay_Ms(500);
}

Source code

https://github.com/roboter/Hardware/tree/main/WCH/ch32v003f4p6-evt-r0-1v1-i2c

UPD! Embeetle integrated my project to their software so only 3 steps needed to run it

Embeetle screenshot 01 Embeetle screenshot 02 Embeetle screenshot 03

Reference: