2013-05-01 23:53:28 +00:00
|
|
|
/*
|
2013-06-15 11:37:22 +00:00
|
|
|
* This file is subject to the terms of the GFX License. If a copy of
|
2013-05-03 14:36:17 +00:00
|
|
|
* the license was not distributed with this file, you can obtain one at:
|
|
|
|
*
|
2018-10-01 15:32:39 +00:00
|
|
|
* http://ugfx.io/license.html
|
2013-05-03 14:36:17 +00:00
|
|
|
*/
|
2013-02-18 07:29:08 +00:00
|
|
|
|
|
|
|
#include "gfx.h"
|
|
|
|
|
|
|
|
#if GFX_USE_GDISP /*|| defined(__DOXYGEN__)*/
|
|
|
|
|
2013-10-19 06:45:01 +00:00
|
|
|
#define GDISP_DRIVER_VMT GDISPVMT_TestStub
|
2015-11-21 09:27:08 +00:00
|
|
|
#include "gdisp_lld_config.h"
|
|
|
|
#include "../../../src/gdisp/gdisp_driver.h"
|
2013-02-18 07:29:08 +00:00
|
|
|
|
|
|
|
#ifndef GDISP_SCREEN_HEIGHT
|
|
|
|
#define GDISP_SCREEN_HEIGHT 128
|
|
|
|
#endif
|
|
|
|
#ifndef GDISP_SCREEN_WIDTH
|
|
|
|
#define GDISP_SCREEN_WIDTH 128
|
|
|
|
#endif
|
2013-10-19 06:45:01 +00:00
|
|
|
#ifndef GDISP_INITIAL_CONTRAST
|
|
|
|
#define GDISP_INITIAL_CONTRAST 50
|
|
|
|
#endif
|
|
|
|
#ifndef GDISP_INITIAL_BACKLIGHT
|
|
|
|
#define GDISP_INITIAL_BACKLIGHT 100
|
|
|
|
#endif
|
2013-02-18 07:29:08 +00:00
|
|
|
|
2018-06-23 03:02:07 +00:00
|
|
|
LLDSPEC gBool gdisp_lld_init(GDisplay *g) {
|
2013-10-21 05:13:10 +00:00
|
|
|
/* No board interface and no private driver area */
|
|
|
|
g->priv = g->board = 0;
|
|
|
|
|
2013-02-18 07:29:08 +00:00
|
|
|
/* Initialise the GDISP structure */
|
2013-10-19 06:45:01 +00:00
|
|
|
g->g.Width = GDISP_SCREEN_WIDTH;
|
|
|
|
g->g.Height = GDISP_SCREEN_HEIGHT;
|
2018-07-08 03:51:20 +00:00
|
|
|
g->g.Orientation = gOrientation0;
|
2018-07-08 01:47:36 +00:00
|
|
|
g->g.Powermode = gPowerOn;
|
2013-10-19 06:45:01 +00:00
|
|
|
g->g.Backlight = GDISP_INITIAL_BACKLIGHT;
|
|
|
|
g->g.Contrast = GDISP_INITIAL_CONTRAST;
|
2018-06-23 03:02:07 +00:00
|
|
|
return gTrue;
|
2013-02-18 07:29:08 +00:00
|
|
|
}
|
|
|
|
|
2013-10-19 06:45:01 +00:00
|
|
|
#if GDISP_HARDWARE_DRAWPIXEL
|
|
|
|
void gdisp_lld_draw_pixel(GDisplay *g) {
|
|
|
|
(void) g;
|
2013-02-18 07:29:08 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2013-10-19 06:45:01 +00:00
|
|
|
#if GDISP_HARDWARE_PIXELREAD
|
2018-07-08 01:19:43 +00:00
|
|
|
gColor gdisp_lld_get_pixel_color(GDisplay *g) {
|
2013-10-19 06:45:01 +00:00
|
|
|
(void) g;
|
|
|
|
return 0;
|
2013-02-18 07:29:08 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* GFX_USE_GDISP */
|