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's Content

There have been 2 items by y5ee (Search limited from 20-September 18)


By content type

See this member's

Sort by                Order  

#14871 Netduino Plus (wrong Pinnumber on Interrupt?)

Posted by y5ee on 29 June 2011 - 06:11 AM in Netduino Plus 2 (and Netduino Plus 1)

Thank You Very Much! :)



#14869 Netduino Plus (wrong Pinnumber on Interrupt?)

Posted by y5ee on 29 June 2011 - 05:54 AM in Netduino Plus 2 (and Netduino Plus 1)

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.