Atmel Software Framework

multi_language_display.c File Reference

Copyright (c) 2014-2015 Atmel Corporation.

All rights reserved.

#include "conf_example.h"
#include "multi_language_display.h"
#include "unicode_font_table.h"
#include "unicode_string.h"
#include "ssd1306.h"
#include "font.h"
#include "delay.h"

Functions

static void font_bitmap_display (uint8_t page, uint8_t column)
 Display the font bitmap data in the given position. More...
 
static void font_bitmap_find (uint16_t unicode)
 Find the font bitmap data by given the unicode. More...
 
static void font_bitmap_transfer (void)
 Transfer the font bitmap data to fit the display. More...
 
void multi_language_show_browse_info (void)
 Show how to browse the SD card info on the OLED screen. More...
 
void multi_language_show_card_size_info (char *p_string, uint32_t sd_card_size)
 Show the SD card size info on the OLED screen. More...
 
void multi_language_show_end_info (void)
 Show the end info on the OLED screen. More...
 
void multi_language_show_file_name (uint8_t page, const char *string)
 Display SD card file name on OLED screen. More...
 
void multi_language_show_high_capacity_card_info (void)
 Show high capacity SD card info on the OLED screen. More...
 
void multi_language_show_light_info (void)
 Show the light info on the OLED screen. More...
 
void multi_language_show_no_fatfs_info (void)
 Show no fatfs found info on the OLED screen. More...
 
void multi_language_show_no_files_info (void)
 Show no file found info on the OLED screen. More...
 
void multi_language_show_no_sd_info (void)
 Show the no SD card info on the OLED screen. More...
 
void multi_language_show_normal_card_info (void)
 Show normal SD card info on the OLED screen. More...
 
void multi_language_show_sd_info (void)
 Show the SD card info on the OLED screen. More...
 
void multi_language_show_start_info (void)
 Show the start info on the OLED screen. More...
 
void multi_language_show_switch_info (void)
 Show the switch info on the OLED screen. More...
 
void multi_language_show_temperature_info (void)
 Show the temperature info on the OLED screen. More...
 
void multi_language_show_unknow_card_info (void)
 Show unknow card info on the OLED screen. More...
 
static uint8_t unicode_show_one_line (uint8_t page, uint8_t column, const uint16_t *p_unicode_string)
 Display SD card file name on OLED screen. More...
 

Variables

uint8_t font_bitmap_origin [32]
 
uint8_t font_bitmap_show [32]
 
uint8_t font_bitmap_width
 

static void font_bitmap_display ( uint8_t  page,
uint8_t  column 
)
static

Display the font bitmap data in the given position.

Parameters
pagepage address of the OLED.
columncolumn address of the OLED.

References font_bitmap_show, font_bitmap_width, ssd1306_set_column_address(), ssd1306_set_page_address(), and ssd1306_write_data().

Referenced by multi_language_show_file_name(), and unicode_show_one_line().

static void font_bitmap_find ( uint16_t  unicode)
static

Find the font bitmap data by given the unicode.

References font_bitmap_origin, font_bitmap_width, and unicode_font_table.

Referenced by multi_language_show_file_name(), and unicode_show_one_line().

static void font_bitmap_transfer ( void  )
static

Transfer the font bitmap data to fit the display.

References font_bitmap_origin, font_bitmap_show, and font_bitmap_width.

Referenced by multi_language_show_file_name(), and unicode_show_one_line().

void multi_language_show_browse_info ( void  )

Show how to browse the SD card info on the OLED screen.

References ssd1306_write_text(), and unicode_show_one_line().

Referenced by display_sd_info().

void multi_language_show_card_size_info ( char *  p_string,
uint32_t  sd_card_size 
)
void multi_language_show_end_info ( void  )
void multi_language_show_file_name ( uint8_t  page,
const char *  string 
)

Display SD card file name on OLED screen.

Parameters
pagepage address of the OLED.
stringString to display(unicode format).

References font_bitmap_display(), font_bitmap_find(), font_bitmap_transfer(), font_bitmap_width, font_table, ssd1306_set_column_address(), ssd1306_set_page_address(), ssd1306_write_data(), and ssd1306_write_text().

Referenced by display_sd_files_unicode().

void multi_language_show_high_capacity_card_info ( void  )

Show high capacity SD card info on the OLED screen.

References ssd1306_write_text(), and unicode_show_one_line().

Referenced by display_sd_info().

void multi_language_show_light_info ( void  )

Show the light info on the OLED screen.

References ssd1306_write_text(), and unicode_show_one_line().

Referenced by main().

void multi_language_show_no_fatfs_info ( void  )

Show no fatfs found info on the OLED screen.

References ssd1306_write_text(), and unicode_show_one_line().

Referenced by display_sd_info().

void multi_language_show_no_files_info ( void  )

Show no file found info on the OLED screen.

References ssd1306_write_text(), and unicode_show_one_line().

Referenced by display_sd_info().

void multi_language_show_no_sd_info ( void  )

Show the no SD card info on the OLED screen.

References ssd1306_write_text(), and unicode_show_one_line().

Referenced by display_sd_info().

void multi_language_show_normal_card_info ( void  )

Show normal SD card info on the OLED screen.

References ssd1306_write_text(), and unicode_show_one_line().

Referenced by display_sd_info().

void multi_language_show_sd_info ( void  )

Show the SD card info on the OLED screen.

References ssd1306_set_column_address(), ssd1306_set_page_address(), ssd1306_write_text(), and unicode_show_one_line().

Referenced by display_sd_info().

void multi_language_show_start_info ( void  )

Show the start info on the OLED screen.

References ssd1306_clear(), ssd1306_set_column_address(), ssd1306_set_page_address(), ssd1306_write_text(), and unicode_show_one_line().

Referenced by main().

void multi_language_show_switch_info ( void  )
void multi_language_show_temperature_info ( void  )

Show the temperature info on the OLED screen.

References ssd1306_write_text(), and unicode_show_one_line().

Referenced by main().

void multi_language_show_unknow_card_info ( void  )

Show unknow card info on the OLED screen.

References ssd1306_write_text(), and unicode_show_one_line().

Referenced by display_sd_info().

static uint8_t unicode_show_one_line ( uint8_t  page,
uint8_t  column,
const uint16_t *  p_unicode_string 
)
static

uint8_t font_bitmap_origin[32]
uint8_t font_bitmap_show[32]