projects
/
sx
/
simavr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
regExp
home
|
summary
|
tags
|
heads
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
raw
|
patch
| inline |
side by side
(parent:
f97e7f0
)
Commit
3e33b6fabf7b34f126e48a3dd54909cac1699cd6
author
Akos Kiss
<akiss@inf.u-szeged.hu>
Thu, 8 Oct 2020 23:42:15 +0000
(
01:42
+0200)
committer
Akos Kiss
<akiss@inf.u-szeged.hu>
Thu, 8 Oct 2020 23:49:59 +0000
(
01:49
+0200)
Datasheet mandates filling DDRAM with spaces, setting address
counter to DDRAM address 0, and setting entry mode I/D to 1
(increment mode).
The "filling with spaces" was implemented but the rest was missing.
Now added.
examples/parts/hd44780.c
patch
|
blob
|
history
|
download
diff --git
a/examples/parts/hd44780.c
b/examples/parts/hd44780.c
index 0be074f97791b8bd8b3e34927f5c4afba664efef..a2d0177a9e8546ad84318187ae0f2a759afbe1b4 100644
(file)
--- a/
examples/parts/hd44780.c
+++ b/
examples/parts/hd44780.c
@@
-56,6
+56,8
@@
_hd44780_clear_screen(
hd44780_t *b)
{
memset(b->vram, ' ', 0x80);
+ b->cursor = 0;
+ hd44780_set_flag(b, HD44780_FLAG_I_D, 2);
hd44780_set_flag(b, HD44780_FLAG_DIRTY, 1);
avr_raise_irq(b->irq + IRQ_HD44780_ADDR, b->cursor);
}