We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d898162 commit 6321371Copy full SHA for 6321371
src/LCD.java
@@ -19,7 +19,7 @@ public class LCD extends JFrame implements ActionListener {
19
20
boolean graphicalCursorBlinkFlag = false;
21
22
- boolean debug = false;
+ boolean debug = true;
23
24
//Internal flags
25
int cursorPos = 0;
@@ -131,8 +131,10 @@ public void write(boolean regSel, byte data) {
131
cursorPos += (rightleft ? 1 : -1);
132
if (cursorPos < 0)
133
cursorPos = 0;
134
- if (debug)
+ if (debug) {
135
System.out.println("Shifted cursor to the "+(rightleft ? "right." : "left."));
136
+ System.out.println("CursorPos: "+cursorPos);
137
+ }
138
}
139
} else if ((data & 0b00001000) == 0b00001000) {
140
//DISPLAY CONTROL
0 commit comments