aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tdisp
diff options
context:
space:
mode:
authorAndrew Hannam <andrewh@inmarket.com.au>2013-01-18 05:12:09 -0800
committerAndrew Hannam <andrewh@inmarket.com.au>2013-01-18 05:12:09 -0800
commit333fcad87fe0f62b8679845c23fb8f885e656109 (patch)
treee4b1511faeb033ebcba2e8d9469ec477f3f93206 /drivers/tdisp
parent5b444276ae427091d7c413eb297a909f0a9472b3 (diff)
parent58eaf1059161ee0db5e8eff20bb0490ca3012384 (diff)
downloaduGFX-333fcad87fe0f62b8679845c23fb8f885e656109.tar.gz
uGFX-333fcad87fe0f62b8679845c23fb8f885e656109.tar.bz2
uGFX-333fcad87fe0f62b8679845c23fb8f885e656109.zip
Merge pull request #15 from Tectu/master
Merge Tectu Changes
Diffstat (limited to 'drivers/tdisp')
-rw-r--r--drivers/tdisp/HD44780/tdisp_lld.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/drivers/tdisp/HD44780/tdisp_lld.c b/drivers/tdisp/HD44780/tdisp_lld.c
index c150c870..d0f4af0d 100644
--- a/drivers/tdisp/HD44780/tdisp_lld.c
+++ b/drivers/tdisp/HD44780/tdisp_lld.c
@@ -115,6 +115,39 @@ void tdisp_lld_home(void) {
tdisp_lld_write_cmd(0x02);
}
+void tdisp_lld_control(uint16_t what, void *value) {
+ (void)what;
+ (void)value;
+/*
+ switch(attributes) {
+ case TDISP_ON:
+ _displaycontrol |= 0x04;
+ tdisp_lld_write_cmd(0x08 | _displaycontrol);
+ break;
+ case TDISP_OFF:
+ _displaycontrol &=~ 0x04;
+ tdisp_lld_write_cmd(0x08 | _displaycontrol);
+ break;
+ case TDISP_CURSOR_ON:
+ _displaycontrol |= 0x02;
+ tdisp_lld_write_cmd(0x08 | _displaycontrol);
+ break;
+ case TDISP_CURSOR_OFF:
+ _displaycontrol &=~ 0x02;
+ tdisp_lld_write_cmd(0x08 | _displaycontrol);
+ break;
+ case TDISP_CURSOR_BLINK_ON:
+ _displaycontrol |= 0x00;
+ tdisp_lld_write_cmd(0x08 | _displaycontrol);
+ break;
+ case TDISP_CURSOR_BLINK_OFF:
+ _displaycontrol &=~ 0x00;
+ tdisp_lld_write_cmd(0x08 | _displaycontrol);
+ break;
+ }
+*/
+}
+
#endif /* GFX_USE_TDISP */
/** @} */