Untitled

mail@pastecode.io avatar
unknown
plain_text
23 days ago
419 B
4
Indexable
Never
#include "stm32f4xx_hal.h"
#include "ssd1306.h"
#include "fonts.h"

int main(void)
{
  HAL_Init();

  /* Configure the system clock */
  SystemClock_Config();

  /* Initialize all configured peripherals */
  MX_GPIO_Init();
  MX_I2C1_Init();

  ssd1306_Init();
  ssd1306_Fill(Black);

  ssd1306_SetCursor(2, 0);
  ssd1306_WriteString("Hello, World!", Font_11x18, White);
  ssd1306_UpdateScreen();

  while (1)
  {
  }
}
Leave a Comment