Hello!
I've taken the original Blink in VB and translated it to the Mini. The VB code is basically the same idea as my others in C#, except that the LEDs shift across as opposed to the messy blinking in sequence that it ended up into afterwards.
Imports Microsoft.SPOT Imports Microsoft.SPOT.Hardware Imports SecretLabs.NETMF.Hardware Imports SecretLabs.NETMF.Hardware.NetduinoMini Module Module1 Sub Main() ' write your code here ' Dim led As New OutputPort(Pins.GPIO_PIN_20, False) ' Dim led0 As New OutputPort(Pins.GPIO_PIN_19, False) ' Dim led1 As New OutputPort(Pins.GPIO_PIN_18, False) ' Dim led2 As New OutputPort(Pins.GPIO_PIN_17, False) Dim led3 As New OutputPort(Pins.GPIO_PIN_16, False) Dim led4 As New OutputPort(Pins.GPIO_PIN_15, False) Dim led5 As New OutputPort(Pins.GPIO_PIN_14, False) Dim led6 As New OutputPort(Pins.GPIO_PIN_13, False) Do led6.Write(False) led5.Write(False) led3.Write(False) led4.Write(False) ' led.Write(True) 'Thread.Sleep(250) ' led.Write(False) 'Thread.Sleep(250) ' led0.Write(True) 'Thread.Sleep(250) ' led0.Write(False) ' led1.Write(True) 'Thread.Sleep(250) ' led1.Write(False) ' led2.Write(True) Thread.Sleep(250) ' led2.Write(False) led3.Write(True) Thread.Sleep(250) led3.Write(False) led4.Write(True) Thread.Sleep(250) led4.Write(False) led5.Write(True) Thread.Sleep(250) led5.Write(False) led6.Write(True) Thread.Sleep(250) led6.Write(False) Loop End Sub End Module
I also commented out the output designations that were originally assigned for a different function. I have the chosen four output lines connected to one of my programmed PAL chips and seeing a response there.
One of the big problems of using any of the Netduino devices is in displaying an event. Seeing a blink in LEDs is one thing, but it needs to be properly displayed. And from there the data is being sent to something else for further processing.
And that "something else" is a BASIC Stamp 2 running, what else? Their BASIC dialect minding another programmed PAL chip who is receiving information, and then displaying it on a video screen using a rig called a Prop Backpack. That is one of their Prop chips preprogrammed and and wired to be able to display video on a standard screen.