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.

onedumbtrucker

Member Since 08 Aug 2011
Offline Last Active Jun 14 2016 06:54 PM
-----

#65187 ND3 cannot seem to create an interrupt handler

Posted by onedumbtrucker on 13 June 2016 - 10:22 PM

Hi All,

 

Having a strange issue again with the ND3.

 

This code worked fine on my ND+ but will not work on my ND3

        public static InterruptPort button = new InterruptPort(Pins.GPIO_PIN_D0, false, Port.ResistorMode.PullDown, Port.InterruptMode.InterruptEdgeLevelHigh);


        public static void Main()
        {
            try
            {
                button.OnInterrupt += new NativeEventHandler(button_OnInterrupt);
            }
            catch (Exception EX)
            {
                Debug.Print(EX.Message.ToString());
            }
..........

public static void button_OnInterrupt(uint data1, uint data2, DateTime time)
        {
..........

 

 

 

When I debug it throws an argument exception for "button.OnInterrupt += new NativeEventHandler(button_OnInterrupt);" every single time. Have tried hundreds of little changes and tweaks and I could swear it actually worked a few times but cannot figure out what I am doing wrong.




#16633 Some Added functionality to Netduino Plus + Windows Form + Ethernet

Posted by onedumbtrucker on 11 August 2011 - 03:09 PM

Hi All,

My first post so bear with me.

I had a lot of fun playing around with Bjorn Nilssons Netduino Plus + Windows Form + Ethernet and have added a little bit of functionality. I borrowed the serial code from hari's Netduino Serial Port Code Review to add functionality to send text to a serial LCD over the web interface and also added a feature that disables all inputs on the Windows interface until the internet connection is established. I added this because I was getting frustrated at how long it took for it to make the connection so if anyone has any ideas on how to speed up the getting connected part I would love to try them out.

Thanks,
Dan

edit - the code is a bit messy so please excuse the crudeness of my additions.

Attached File  NDP_IP_DOP_Listener V2.zip   98.81KB   38 downloads
Attached File  NDP_WFA_VISUAL_IO V2.zip   342.44KB   41 downloads


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.