Its still the same as before minus the Thread.Sleep. I thought that it might be because i was referring to port 75 which is the onboard LED which is only available from plain vanilla and not gadgeteer. So i changed it to 79 which should be pin 9 on socket 1 which i have another LED plugged into.
namespace GadgeteerApp2
{
public partial class Program
{
// This method is run when the mainboard is powered up or reset.
void ProgramStarted()
{
OutputPort LED;
LED = new OutputPort((Cpu.Pin)79, true);
Debug.Print(āProgram Startedā);
}
}
}
using System;
using System.Collections;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Controls;
using Microsoft.SPOT.Presentation.Media;
using Microsoft.SPOT.Touch;
using Microsoft.SPOT.Hardware;
using Gadgeteer.Interfaces;
using GT = Gadgeteer;
using GTM = Gadgeteer.Modules;
namespace GadgeteerApp2
{
public partial class Program
{
// This method is run when the mainboard is powered up or reset.
void ProgramStarted()
{
OutputPort LED;
LED = new OutputPort((Cpu.Pin)79, true);
Debug.Print("Program Started");
}
}
}
Hi Architect, thanks for those links iām surprised that GHI doesnāt have them listed under Support Tab for the Productā¦ Gus???
i was just there looking for the latest update for the Mountaineer Ethernet and couldnāt find any links.
looking forward to getting my new board up and running yay since the spider decided to take a FORCED vacationā¦
Sorry - I donāt get the (A+B+C+D) * 16 + 15 formula.
Also, the Mtn Ethernet board only has 8 sockets - 3 on each side and 2 opposite the Eth port. But the document you showed has 9 sockets. The USB board has 9 sockets.
All GPIO pins are grouped into ports. There are 9 ports labeled A,B,C,D,E,F,G,H,I
Each port has 16 pins (PA0-PA15, PB0-PB15, etc). Internally each pin has a number PA0=0, PA1=1 ā¦, PB0=16, PB1=17, ā¦ etc.
46 is the physical pin number on the chip for GPIO PE15 which is 15th pin in Port E. Before E there are 4 ports (A,B,C,D) so the actual number is 4*16+15=79
I have just tested your code on my Mountaineer USB and it works just fine. Make sure your led is good and polarity is correct. Also donāt forget to use a resistor with the led.
@ Architect: sorry to piggy back on this post but i was wondering if you can tell me, when you open your MFDeploy and VS2010 does your Mountaineerās name show up with the extra characters as displayed in the picture on my post here: http://www.tinyclr.com/forum/topic?id=8560
thanks.
Thanks for the explanation! I can take the rest of the day off ā¦ Iāve already learned my something new for today
If you would ā¦ what about the images I posted yesterday? Since Iām reading those incorrectly, how should they be read to get the pin #? (Iāve re-attached them here)
Both are from the Mountaineer page:
Image 1 is Socket 1
Image 2 is (what I believed to be) the CPU pins.
Socket 1 Pin 9 == GPIO 15
GPIO 15 is (what I thought to be) pin 46
If 46 isnāt CPU pin 46, then what is 46 representing?
@ Jay Jay - Yes, MFDeploy pings fine. I had one small hick-up with the board after switching to WinUSB driver, but after using different usb port everything is back to normal.
@ mhectorgato - 46 is important when you do routing. It is the physical pin/ball/pad of the IC that is soldered on the PCB. The same IC can come in different packages so that number can be different between different different packages, but the internal pin number (PE15=79) will not change.
Did you run it with an LED/resistors connected or did you just debug it. Because i have a 100 ohm resistor hooked up to the green pin on the LED and it debugs fine but the LED doesnāt light up.