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.
23 lines
336 B
23 lines
336 B
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#include "oled.h"
|
|
|
|
|
|
void oled_print(int a)
|
|
{
|
|
printf("Value of a is %d\n", a);
|
|
}
|
|
|
|
display_s oled_init()
|
|
{
|
|
display_s *lcd = malloc(sizeof(display_s));
|
|
lcd->size_x = 10;
|
|
lcd->size_y = 20;
|
|
lcd->print = &oled_print;
|
|
|
|
printf("LCD_OLED : Init Ok\n");
|
|
return *lcd;
|
|
}
|