Netduino VB Tutorial 1 Blink

This is the first in a series of tutorials on programming the Netduino with Visual Basic or VB. You can program the netduino with either C# or VB but VB is now my language of choice.

image

This simple program will blink the onboard LED on for a second then off for a second repeating indefinitely.


For more, check out my other Netduino Blog posts.

 

The code: Netduino VB Blink

Module Module1
    Sub Main()
        Dim led As OutputPort = New OutputPort(Pins.ONBOARD_LED, False)
        Do 
            led.Write(True)
            Thread.Sleep(1000)
            led.Write(False)
            Thread.Sleep(1000)
        Loop
    End Sub
End Module

Leave a Comment