2016-05-05 22:33:15 +02:00
|
|
|
//---
|
2016-07-06 11:28:51 +02:00
|
|
|
//
|
|
|
|
// gint display module: screen
|
|
|
|
//
|
|
|
|
// Interacts with the physical screen. See other display modules for video
|
|
|
|
// ram management and drawing.
|
|
|
|
//
|
|
|
|
// The screen basically has two input values, which are a register
|
|
|
|
// selector and the selected register's value. What this module does is
|
|
|
|
// essentially selecting registers by setting *selector and assigning them
|
|
|
|
// values by setting *data.
|
2016-05-05 22:33:15 +02:00
|
|
|
//---
|
|
|
|
|
2016-07-06 11:28:51 +02:00
|
|
|
#ifndef _SCREEN_H
|
2017-03-26 18:38:32 +02:00
|
|
|
#define _SCREEN_H
|
2016-07-06 11:28:51 +02:00
|
|
|
|
2016-05-05 11:49:05 +02:00
|
|
|
/*
|
|
|
|
screen_display()
|
|
|
|
Displays contents on the full screen. Expects a 1024-byte buffer.
|
|
|
|
*/
|
|
|
|
void screen_display(const void *vram);
|
|
|
|
|
2016-12-22 18:36:39 +01:00
|
|
|
/*
|
|
|
|
screen_setBacklight()
|
|
|
|
On compatible models, turns on or turns off the backlight.
|
|
|
|
*/
|
|
|
|
void screen_setBacklight(int on);
|
|
|
|
|
2017-01-20 21:11:00 +01:00
|
|
|
/*
|
|
|
|
screen_toggleBacklight()
|
|
|
|
Changes the backlight state, regardless of its current state.
|
|
|
|
*/
|
|
|
|
void screen_toggleBacklight(void);
|
|
|
|
|
2016-05-05 11:49:05 +02:00
|
|
|
#endif
|