You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
KED/libraries/backup/function_pointer/oled.c

19 lines
294 B

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "oled.h"
void oled_print(int a)
{
printf("oled_print(int a) : %d\n", a);
}
void oled_init(display_s *lcd)
{
lcd->size_x = 10;
lcd->size_y = 20;
lcd->print = &oled_print;
printf("LCD_OLED_REG : Init Ok\n");
}