Makaram
Member
Hi, Got my LCD all up and running now trying to fully understand the whole thing.
I understand in the datasheet it has all the commands etc I'm wondering about this command
LCD_PORT = ch >> 4 & 0xf;
say ch = 0x20
0b00100000 becomes 0b00000010 AND 0b00001111 so because only the 1 bit is high the final outcome is 0b00000010???
would
For(int i=0; i <5; i++)
{
ch >> 1 & 0xf
}
simulate the process or does it jus jump four shifts instantly?
thanks
Thanks,
(special thanks to Nigel, for the code)
Matt
I understand in the datasheet it has all the commands etc I'm wondering about this command
LCD_PORT = ch >> 4 & 0xf;
say ch = 0x20
0b00100000 becomes 0b00000010 AND 0b00001111 so because only the 1 bit is high the final outcome is 0b00000010???
would
For(int i=0; i <5; i++)
{
ch >> 1 & 0xf
}
simulate the process or does it jus jump four shifts instantly?
thanks
Thanks,
(special thanks to Nigel, for the code)
Matt
Last edited: