Hi guys, I am working with a PIC18F micro, interacting with an oled screen. I am trying to develop a comparator that will take a value A and iterate through values B from 0 on up until it matches A. It then should print the values on the screen. But instead of numbers, I am getting random characters (" ^ $(_ " specifically). I have tried declaring A and B as both char and int, and both signed and unsigned. all combinations yield the same result...I am stumped.
code:
A = 6;
k = 0;
while (k < 20) {
for( B = 0; B < A; B++ ) {
stringC[k] = B;
}
k++;
}
//code to display stringC on oled screen
code:
A = 6;
k = 0;
while (k < 20) {
for( B = 0; B < A; B++ ) {
stringC[k] = B;
}
k++;
}
//code to display stringC on oled screen