Hello!
I decided to try and revive an program which successfully ran on the Mini, which will cycle an SN74278 device.
It turns out that this program:
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 led3.Write(True) led4.Write(True) led5.Write(True) led6.Write(True) Thread.Sleep(500) led3.Write(False) led4.Write(False) led5.Write(False) led6.Write(False) led.Write(True) led3.Write(True) Thread.Sleep(250) led.Write(False) led3.Write(False) Thread.Sleep(250) led0.Write(True) led4.Write(True) Thread.Sleep(250) led0.Write(False) led4.Write(False) Thread.Sleep(250) led1.Write(True) led5.Write(True) Thread.Sleep(250) led1.Write(False) led5.Write(False) Thread.Sleep(250) led2.Write(True) led6.Write(True) Thread.Sleep(250) led2.Write(False) led6.Write(False) Thread.Sleep(175) led3.Write(True) led4.Write(True) led5.Write(True) led6.Write(True) Thread.Sleep(500) led3.Write(False) led4.Write(False) led5.Write(False) led6.Write(False) Thread.Sleep(500) Loop End Sub End Module
It turns out that it built correctly. (Which wasn't a surprise as it worked properly the first time.)
However it remembered the last used serial port (COM4) from when it was first tested. I needed to cycle through the available ones and then set the serial port back to COM1 to enable it to load properly. And when I loaded the program into the IDE, I checked the properties box and noticed that it didn't select the serial port, instead it showed the emulator. When it started running, I noticed that the sleeper settings need to be updated.... So that's the first draft of the code and the finished version will be up on the GitHub account soon.
-----
Chris what's the blue box that's bigger on the inside then outside, doing outside your offices?