git.ucc.asn.au
/
uccvend-snackrom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update README to reflect new repository structure
[uccvend-snackrom.git]
/
ROM2
/
display_basic.c
diff --git
a/ROM2/display_basic.c
b/ROM2/display_basic.c
index
4db73ba
..
2849696
100644
(file)
--- a/
ROM2/display_basic.c
+++ b/
ROM2/display_basic.c
@@
-20,6
+20,7
@@
void set_msg(char newmsg[11]) {
for (i=0; i < 10; i++) {
if (newmsg[i] == 0) break;
}
for (i=0; i < 10; i++) {
if (newmsg[i] == 0) break;
}
+ display_send_byte(0xaf); // reset ptr to start
for (i--; i >= 0; i--) {
display_send_byte(newmsg[i]&0x7f);
}
for (i--; i >= 0; i--) {
display_send_byte(newmsg[i]&0x7f);
}
@@
-36,7
+37,7
@@
void display_send_byte(char c) {
bclr_misc_output(A3800_DISPLAY_WRITE); /* disable the display clock */
}
bclr_misc_output(A3800_DISPLAY_WRITE); /* disable the display clock */
}
-#define DISPLAY_DELAY
5
0 /* ms to delay between ops - could be tweaked */
+#define DISPLAY_DELAY
2
0 /* ms to delay between ops - could be tweaked */
void display_reset() {
/* lower the reset line for a while */
bclr((void*)&_io_ports[M6811_PORTA], PORTA_DISP_RESET);
void display_reset() {
/* lower the reset line for a while */
bclr((void*)&_io_ports[M6811_PORTA], PORTA_DISP_RESET);
UCC
git Repository :: git.ucc.asn.au