int main(void)
{
HAL_Init();
SystemClock_Config();
MX_GPIO_Init();
MX_I2C1_Init();
MX_USART1_UART_Init();
/* USER CODE BEGIN 2 */
printf("OLED 0.96' TEST...\r\n");
OLED_Init();
/* USER CODE END 2 */
/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
OLED_Clear();
OLED_ShowChar(0, 0, 'A', 16);
OLED_ShowChar(0, 2, 'B', 16);
OLED_ShowChar(0, 4, 'C', 16);
OLED_ShowChar(0, 6, 'D', 16);
OLED_ShowChar(15, 0, 'A', 12);
OLED_ShowChar(15, 1, 'B', 12);
OLED_ShowChar(15, 2, 'C', 12);
OLED_ShowChar(15, 3, 'D', 12);
OLED_ShowChar(15, 4, 'E', 12);
OLED_ShowChar(15, 5, 'F', 12);
OLED_ShowChar(15, 6, 'G', 12);
OLED_ShowChar(15, 7, 'H', 12);
OLED_ShowString(30, 0, "mculover666", 12);
OLED_ShowCHinese(35, 2, 0);
OLED_ShowCHinese(65, 2, 1);
OLED_ShowCHinese(95, 2, 2);
OLED_ShowString(36, 6, "IoT Board", 16);
HAL_Delay(5000);
OLED_DrawBMP(0, 0, 128, 8,BMP1);
HAL_Delay(5000);
}
/* USER CODE END 3 */
}