projects
/
my-code
/
arm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stupid mistake fixed, display basically working now!
[my-code/arm.git]
/
betty
/
display.c
diff --git
a/betty/display.c
b/betty/display.c
index
e102141
..
b3d3e9c
100644
(file)
--- a/
betty/display.c
+++ b/
betty/display.c
@@
-14,7
+14,7
@@
* functions
*/
* functions
*/
-void display_
clear_screen(void
) {
+void display_
fill_screen(u8 fill
) {
u8 page,width;
u8 page,width;
@@
-22,12
+22,17
@@
void display_clear_screen(void) {
DISPLAY_SET_C_ADDR(0);
DISPLAY_SET_PAGE_ADDR(page);
for(width=0;width<DISPLAY_DIMX;width++) {
DISPLAY_SET_C_ADDR(0);
DISPLAY_SET_PAGE_ADDR(page);
for(width=0;width<DISPLAY_DIMX;width++) {
- DISPLAY_DATA=
0x00
;
- DISPLAY_DATA=
0x00
;
+ DISPLAY_DATA=
fill
;
+ DISPLAY_DATA=
fill
;
}
}
}
}
}
}
+void display_clear_screen(void) {
+
+ display_fill_screen(0x00);
+}
+
void display_init(void) {
DISPLAY_EXIT_POWER_SAVE;
void display_init(void) {
DISPLAY_EXIT_POWER_SAVE;