DGUS LCD Library
1
|
DGUS II LCD Driver Utility functions. More...
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stddef.h>
#include <time.h>
#include "dgus.h"
#include "dgus_util.h"
Functions | |
DGUS_RETURN | dgus_set_page (uint8_t page) |
Change DGUS page. More... | |
DGUS_RETURN | dgus_get_page (uint16_t *page) |
Get the currently displayed page ID number. More... | |
DGUS_RETURN | dgus_set_icon (uint16_t icon_addr, uint8_t val) |
Change an icon to index val. More... | |
DGUS_RETURN | dgus_play_sound (uint8_t sound_id, uint8_t section_id, uint8_t volume, uint8_t play_mode) |
PLay a stored wav by id. More... | |
DGUS_RETURN | dgus_set_volume (uint8_t volume) |
Set the current volume level. More... | |
DGUS_RETURN | dgus_get_volume (uint8_t *volume) |
Get the current volume. More... | |
DGUS_RETURN | dgus_set_rtc (uint16_t icon_addr, uint8_t val) |
DGUS_RETURN | dgus_get_rtc (uint16_t icon_addr, uint8_t val) |
DGUS_RETURN | dgus_set_brightness (uint8_t brightness) |
Get the current brightness for the display. More... | |
DGUS_RETURN | dgus_get_brightness (uint8_t *brightness) |
Get the current brightness for the display. More... | |
DGUS_RETURN | dgus_get_system_config (dgus_cmd_system_config *config) |
Read the system configuration variable. More... | |
DGUS_RETURN | dgus_system_reset (uint8_t full_reset) |
Reset the DGUS display. More... | |
DGUS II LCD Driver Utility functions.
DGUS_RETURN dgus_get_brightness | ( | uint8_t * | brightness | ) |
Get the current brightness for the display.
brightness | value from 0 - 100% |
DGUS_RETURN dgus_get_page | ( | uint16_t * | page | ) |
Get the currently displayed page ID number.
page | a pointer the page id variable |
DGUS_RETURN dgus_get_system_config | ( | dgus_cmd_system_config * | config | ) |
DGUS_RETURN dgus_get_volume | ( | uint8_t * | volume | ) |
DGUS_RETURN dgus_play_sound | ( | uint8_t | sound_id, |
uint8_t | section_id, | ||
uint8_t | volume, | ||
uint8_t | play_mode | ||
) |
PLay a stored wav by id.
sound_id | id of the wav from the designer |
section_id | section of the wav to play |
volume | |
play_mode | 0x0 stop, 0x1 pause, 0x2 play || or section_id to loop back to (firmware version dependant) |
DGUS_RETURN dgus_set_brightness | ( | uint8_t | brightness | ) |
Get the current brightness for the display.
brightness | value from 0 - 100% |
DGUS_RETURN dgus_set_icon | ( | uint16_t | icon_addr, |
uint8_t | val | ||
) |
Change an icon to index val.
icon_addr | VP of the icon |
val | index to set to |
DGUS_RETURN dgus_set_page | ( | uint8_t | page | ) |
DGUS_RETURN dgus_set_volume | ( | uint8_t | volume | ) |
DGUS_RETURN dgus_system_reset | ( | uint8_t | full_reset | ) |
Reset the DGUS display.
full_reset | 0 or 1. 1 will perform a full reset including T5 chip, NAND and all peripherals |