Hey,
I want to create a for-loops to give a waveform on my lcd. I have 102 values to fill the 8 rows of my lcd regarding to the input that can be adjusted using a poti. I used the following code:
.....
char pattern[]= //my array for the LCD
{
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
};
......
for (j=0; j*13>=bin_number; j++) //every 13nth value compare with present data and if match add one line of ones on my lcd
{
y =y++;
pattern[y] = 0b11111;
}
for (j=7; bin_number>j*13; j--) //every 13nth value of the present data compare the other way around, add one line of zeros on my lcd
{
y == y--;
pattern[y] = 0b00000;
}
write_lcd_one_step(0x8C,pattern[y]);
It shows me some characters, but not a waveform, like line after line, related to the adjusted value.