Talk:Button Reading

From ST2205u wiki

Jump to: navigation, search

--Michu currently im working on a general gpio function. a prototype is working, now i try to made some clean code. I'll add two new functions to the lib, called gpio_and(int gpioport, int value) and gpio_or(int gpioport, int value). ill also alter the firmware to support those commands. im now able to turn off and on my display for example with this function. perhaps the buttons are also connected with the gpio ports?

anyway with this possibilities, each spec file need to be updated with 2 new variables: GPIO_DISPLAY and GPIO_DISPLAY_VALUE. ill also create a testtool to play with those gpio ports. thats the way i found out, which port and value i need for my device.

I found a keyboard reading routine here. i dont know if it works, and i dont know if the addresses are right ($A001)...

Personal tools