Skip to content

Commit 2041f77

Browse files
authored
Update README.md
1 parent d4d7405 commit 2041f77

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,20 @@ The circuit has been fully simulated and tested using **Proteus**.
4444
## 💻 Code Overview
4545

4646
```c
47-
char unsigned continue_text[] = {
48-
// Hex codes for scrolling characters in "Reza Guner"
49-
};
47+
void scroll_continuous_text() {
48+
int start_col, i, j;
49+
50+
51+
for (start_col = 0; start_col < TOTAL_COLUMNS + 8; start_col++) {
52+
for (j = 0; j < 10; j++) {
53+
for (i = 0; i < 8; i++) {
54+
int text_col = start_col - i;
55+
unsigned char col_data = (text_col >= 0 && text_col < TOTAL_COLUMNS) ? continuous_text[text_col] : 0x00;
56+
send_to_matrix(~(1 << i), col_data);
57+
}
58+
}
59+
}
60+
}
5061
```
5162

5263
- PORTA controls the active column selection (~(1 << i))

0 commit comments

Comments
 (0)