2016-10-03 17:56:45 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) Pavol Rusnak, SatoshiLabs
|
|
|
|
*
|
|
|
|
* Licensed under TREZOR License
|
|
|
|
* see LICENSE file for details
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define CMD(X) (void)(X);
|
|
|
|
#define DATA(X) (void)(X);
|
|
|
|
|
|
|
|
uint32_t trezorui_poll_event(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void display_init(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-10-13 15:09:46 +00:00
|
|
|
void display_set_window(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1)
|
2016-10-03 17:56:45 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void display_refresh(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
int display_orientation(int degrees)
|
|
|
|
{
|
2016-11-06 17:14:23 +00:00
|
|
|
if (degrees != ORIENTATION) {
|
|
|
|
if (degrees == 0 || degrees == 90 || degrees == 180 || degrees == 270) {
|
|
|
|
ORIENTATION = degrees;
|
|
|
|
}
|
|
|
|
}
|
2016-10-03 17:56:45 +00:00
|
|
|
return ORIENTATION;
|
|
|
|
}
|
|
|
|
|
|
|
|
int display_backlight(int val)
|
|
|
|
{
|
2016-11-06 17:14:23 +00:00
|
|
|
if (BACKLIGHT != val && val >= 0 && val <= 255) {
|
|
|
|
BACKLIGHT = val;
|
|
|
|
}
|
2016-10-03 17:56:45 +00:00
|
|
|
return BACKLIGHT;
|
|
|
|
}
|
2016-10-05 22:02:46 +00:00
|
|
|
|
|
|
|
void display_save(const char *filename)
|
|
|
|
{
|
|
|
|
}
|