Skip to content

Commit 6321371

Browse files
committed
Update LCD.java
1 parent d898162 commit 6321371

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/LCD.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class LCD extends JFrame implements ActionListener {
1919

2020
boolean graphicalCursorBlinkFlag = false;
2121

22-
boolean debug = false;
22+
boolean debug = true;
2323

2424
//Internal flags
2525
int cursorPos = 0;
@@ -131,8 +131,10 @@ public void write(boolean regSel, byte data) {
131131
cursorPos += (rightleft ? 1 : -1);
132132
if (cursorPos < 0)
133133
cursorPos = 0;
134-
if (debug)
134+
if (debug) {
135135
System.out.println("Shifted cursor to the "+(rightleft ? "right." : "left."));
136+
System.out.println("CursorPos: "+cursorPos);
137+
}
136138
}
137139
} else if ((data & 0b00001000) == 0b00001000) {
138140
//DISPLAY CONTROL

0 commit comments

Comments
 (0)