Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

y5ee

Member Since 08 Feb 2011
Offline Last Active Jun 29 2011 04:25 PM
-----

Topics I've Started

Netduino Plus (wrong Pinnumber on Interrupt?)

29 June 2011 - 05:54 AM

Hello,

can somebody tell me, how the Netduino Handle the first Parameter on an default Interrupt?

 InterruptPort button = new InterruptPort(Pins.GPIO_PIN_D6, true, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth);
            button.OnInterrupt +=new NativeEventHandler(button_OnInterrupt);

static void button_OnInterrupt(uint port, uint state, DateTime time)
        {
            Debug.Print("Port: " + port.ToString() + " State: " + state.ToString());
            
        }

If i fire this i get:

Port: 52 and State: 0 or 1.

Why GPIO_PIN6 gives me 52?
Pin4 = 12
Pin5 = 51
Pin6 = 52

Somebody knows this Problem?

Kind regards

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.