TTK4155 Ping-pong project
oled_driver.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FONT4   (&oled_stdout_4)
 
#define FONT5   (&oled_stdout_5)
 
#define FONT8   (&oled_stdout_8)
 
#define EEPROM_BRIGHTNESS_ADR   0x70
 

Functions

void write_c (uint8_t val)
 Write to controll register function. More...
 
void write_d (uint8_t data)
 Write to data register function. More...
 
uint8_t oled_init (void)
 Initialize Oled. More...
 
int oled_print_char_small_buffer (char chr, int line, int col_start)
 
int oled_print_char_medium_buffer (char chr, int line, int col_start)
 
int oled_print_char_large_buffer (char chr, int line, int col_start)
 
int oled_update_buffer (void)
 
void oled_page_select (int page)
 
void oled_col_start_end (int start, int end)
 
void oled_clear_line (int line)
 
void oled_reset_screen (void)
 
void oled_fill_screen (void)
 
void set_cursor (int line, int col)
 Set cursor on oled screen. To be used with dual-buffer setup. More...
 
int oled_print_small_b (char ch, FILE *file)
 Print small letters to SRAM buffer. More...
 
int oled_print_medium_b (char ch, FILE *file)
 Print medium letters to SRAM buffer. More...
 
int oled_print_large_b (char ch, FILE *file)
 Print large letters to SRAM buffer. More...
 
void oled_adjust_brightness (uint8_t level)
 
int oled_set_last_brightness (void)
 

Variables

uint8_t LINE_POS
 
uint8_t COL_POS
 

Detailed Description

Oled driver header file

Macro Definition Documentation

◆ EEPROM_BRIGHTNESS_ADR

#define EEPROM_BRIGHTNESS_ADR   0x70

◆ FONT4

#define FONT4   (&oled_stdout_4)

◆ FONT5

#define FONT5   (&oled_stdout_5)

◆ FONT8

#define FONT8   (&oled_stdout_8)

Function Documentation

◆ oled_adjust_brightness()

void oled_adjust_brightness ( uint8_t  level)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ oled_clear_line()

void oled_clear_line ( int  line)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ oled_col_start_end()

void oled_col_start_end ( int  start,
int  end 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ oled_fill_screen()

void oled_fill_screen ( void  )
Here is the call graph for this function:

◆ oled_init()

uint8_t oled_init ( void  )

Initialize Oled.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ oled_page_select()

void oled_page_select ( int  page)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ oled_print_char_large_buffer()

int oled_print_char_large_buffer ( char  chr,
int  line,
int  col_start 
)
Here is the caller graph for this function:

◆ oled_print_char_medium_buffer()

int oled_print_char_medium_buffer ( char  chr,
int  line,
int  col_start 
)
Here is the caller graph for this function:

◆ oled_print_char_small_buffer()

int oled_print_char_small_buffer ( char  chr,
int  line,
int  col_start 
)
Here is the caller graph for this function:

◆ oled_print_large_b()

int oled_print_large_b ( char  ch,
FILE *  file 
)

Print large letters to SRAM buffer.

Parameters
chCharacter
fileFile format spesific for FDEV_SETUP_STREAM
Here is the call graph for this function:

◆ oled_print_medium_b()

int oled_print_medium_b ( char  ch,
FILE *  file 
)

Print medium letters to SRAM buffer.

Parameters
chCharacter
fileFile format spesific for FDEV_SETUP_STREAM
Here is the call graph for this function:

◆ oled_print_small_b()

int oled_print_small_b ( char  ch,
FILE *  file 
)

Print small letters to SRAM buffer.

Parameters
chCharacter
fileFile format spesific for FDEV_SETUP_STREAM
Here is the call graph for this function:

◆ oled_reset_screen()

void oled_reset_screen ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ oled_set_last_brightness()

int oled_set_last_brightness ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ oled_update_buffer()

int oled_update_buffer ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_cursor()

void set_cursor ( int  line,
int  col 
)

Set cursor on oled screen. To be used with dual-buffer setup.

Parameters
lineLine (from 0 to MAX_PAGES on screen).
colColumn (from 0 to MAX_COLUMS )
Here is the caller graph for this function:

◆ write_c()

void write_c ( uint8_t  val)

Write to controll register function.

Parameters
valValue
Here is the caller graph for this function:

◆ write_d()

void write_d ( uint8_t  data)

Write to data register function.

Parameters
dataData
Here is the caller graph for this function:

Variable Documentation

◆ COL_POS

uint8_t COL_POS

◆ LINE_POS

uint8_t LINE_POS