home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
InputDeviceMapper Plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="T-Square" data-source="post: 20030" data-attributes="member: 12905"><p>[code]eingang = IO.m_Port.Tasten(0x378+1);[/code]</p><p>just reads the input pins from the printer port (Pin10,11,12,13 and 15).</p><p>PIN11 is Bit4 at address 0x378+1 (printer statusport), PIN10 is Bit3, PIN12 is Bit2, PIN13 is Bit1 and PIN15 is Bit0.</p><p>If a button is pressed the Bit changes from 1 to 0 (Bit4 changes from 0 to 1 because PIN11 is hardware inverted).</p><p>No button pressed is 15 decimal (01111 binary).</p><p>With these 5 inputs a very simple button matrix with up to 31 buttons can be connected.</p><p></p><p>But to answer your question:</p><p>This just checks the current state of the port. </p><p>A button event is any change of this input (one change for button down and one for button up).</p></blockquote><p></p>
[QUOTE="T-Square, post: 20030, member: 12905"] [code]eingang = IO.m_Port.Tasten(0x378+1);[/code] just reads the input pins from the printer port (Pin10,11,12,13 and 15). PIN11 is Bit4 at address 0x378+1 (printer statusport), PIN10 is Bit3, PIN12 is Bit2, PIN13 is Bit1 and PIN15 is Bit0. If a button is pressed the Bit changes from 1 to 0 (Bit4 changes from 0 to 1 because PIN11 is hardware inverted). No button pressed is 15 decimal (01111 binary). With these 5 inputs a very simple button matrix with up to 31 buttons can be connected. But to answer your question: This just checks the current state of the port. A button event is any change of this input (one change for button down and one for button up). [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
InputDeviceMapper Plugin
Contact us
RSS
Top
Bottom