Hello Stefan: of sure now the code is much more elegant and performing.
You had not still resolved the problem of collision among more button pressed: you should use the TristatePort instead of the OutputPort. The main difference is that on the Outputport you change the output state, while with the TristatePort you will change the direction. Instead of using the "Write" method you should use the "Active" property: when is true, the port is an output, and when is false it is an input.
With this trick it won't be any collision.
Good work anyway.
Cheers
Mario
Keypad driver and scheme
Started by Stefan, Mar 09 2011 05:52 PM
23 replies to this topic
#21
Posted 13 March 2011 - 12:26 PM
Biggest fault of Netduino? It runs by electricity.
#22
Posted 13 March 2011 - 03:09 PM
True, think this version would be better?
http://nederland.lig...313_keypad2.zip
- Black Rose likes this
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#23
Posted 13 March 2011 - 04:44 PM
Stefan: I think it is perfect!
Good work again.
Cheers
Mario
Biggest fault of Netduino? It runs by electricity.
#24
Posted 13 March 2011 - 04:47 PM
Nice to hear, then I can safely assume I can finish my project with the keypad and share it here. New thread incoming soon
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users