NooM and Baqs, you were both right. I ended up using pot.ReadRaw() and AnalogChannels.ANALOG_PIN_A0.
Thanks again for the help! Now I can continue on, and I know more about AnalogChannels, debugging in C# and using MS VC#.
For anyone else that has this, here is the what I used to make the potentiometer on the MakerShield work with the little blinky app:
OutputPort led = new OutputPort(Pins.GPIO_PIN_D0, false); AnalogInput pot = new AnalogInput(AnalogChannels.ANALOG_PIN_A0); int potValue = 0; while (true) { //read the value of the potentiometer potValue = (int)pot.ReadRaw(); Debug.Print("ReadRaw analog value: " + pot.ReadRaw()); // blink the LED based on the pot's value (0-1023ms) led.Write(true); // turn on the LED Thread.Sleep(potValue); // sleep based on the Pot led.Write(false); // turn off the LED Thread.Sleep(potValue); // sleep based on the Pot }Sincerely,
Jaime