Hi. I am developing an easier API to interface with the CFA635 LCD module. I got through the part of sending and receiving packets with the help of the neighbouring topic that deals with Visual Basic Express example.
I am having a problem of demystifying the art of bit mask reading. In the datasheet, for command to Read the Keypad in Polled Mode, it says that it returns a bit mask at data[0], but from that, I have absolutely no idea to determine which key was pressed. I never worked with bitmasks. I searched about it but came to no avail.
Made a small function which is overloaded (one is one-way, another returns the data)
SendPacket() returns a byte array of response. So the 0th place would be type, 1st the data length, and so on.
I am having a problem of demystifying the art of bit mask reading. In the datasheet, for command to Read the Keypad in Polled Mode, it says that it returns a bit mask at data[0], but from that, I have absolutely no idea to determine which key was pressed. I never worked with bitmasks. I searched about it but came to no avail.
Made a small function which is overloaded (one is one-way, another returns the data)
Code:
byte[] response = SendPacket(command, dataLength, data, 3);
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.