|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Code to Read the Binary Inputs on Analog Buttons
Does anyone have example code on how to read the binary digits from the OIs analog inputs? According to Mike only the first 4 binary digits are used to determine buttons being pressed.
For Example: 1000 0000 = Button 1 0100 0000 = Button 2 0010 0000 = BUtton 3 0001 0000 = Button 4 The trouble is the last four digits are random and fluctuate greatly depending on what mood the chicklet is in so sometimes 1000 0000 = Button 1 or 1000 0001 = Button 1 or 1000 0010 = Button 1 The problem is we really don't want to make 4 cases for every button. So we just want to ignore them. Last edited by Kingofl337 : 08-03-2007 at 16:26. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help! Analog Inputs!! | brennerator | Programming | 7 | 11-02-2007 15:48 |
| Analog Inputs | bush | Programming | 5 | 13-03-2006 17:49 |
| How do the Analog Inputs work? | JBotAlan | Electrical | 3 | 07-01-2005 00:11 |
| Failing analog inputs? | Phasmatis568 | Control System | 5 | 22-01-2004 13:28 |
| Analog Inputs | 316_programer | Technical Discussion | 2 | 05-02-2002 05:53 |