Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

carb

Member Since 17 Mar 2012
Offline Last Active Apr 12 2014 03:11 AM
-----

Topics I've Started

Netduino Go and NETMF Toolbox

27 January 2013 - 10:45 PM

I have the NETMF Toolbox sample program for the Adafruit RGB LCD Shield working on everything accept for the Netduino Go Shieldbase.

 

It compiles but throws an exception:

The debugging target runtime is loading the application assemblies and starting execution.

Ready.

A first chance exception of type 'System.NotImplementedException' occurred in NetduinoGo.ShieldBase.dll

An unhandled exception of type 'System.NotImplementedException' occurred in NetduinoGo.ShieldBase.dll

 

Has anyone gotten the sample to run on the shieldbase?

 

I am using the sample from the toolbox and have added the shieldbase to the references.

 

Imports Microsoft.SPOTImports Microsoft.SPOT.HardwareImports SecretLabs.NETMF.HardwareImports SecretLabs.NETMF.Hardware.NetduinoImports Toolbox.NETMF.Hardware

 

Chuck


Netduino Plus 2 and Adafruit RGB LCD Shield

04 December 2012 - 01:58 AM

I am currently using Neduino SDK 4.2.1. I have tried to load the toolbox sample for the Adafruit RGB LCD display on both the Netduino Classic and Netduino Plus 2. On the Classic I get an E300000 error code and the wrong mscorlib.dll. I followed the FAQ in wiki could not change the library from 4.1 to 4.2 I then went back to the Netduino Plus 2 with firmware 4.2.1.2 loaded. The shield uses I2C and ties Analog Pins 4 & 5 to the SC & SD connection and has pullup resistors on the I2C lines. With this setup I get errors that it can not find namespace name 'Hd44780Lcd', 'IGPIPort' or 'Mcp23017'. I have added every reference that I can find if no luck. If Stefan (when you get some time) or someone can give me a hint on how to fix this it would be appreciated. Thanks, Chuck

Difference in using VB vs C#

25 November 2012 - 07:31 PM

I was writting a simple program in Visual Basic using a Netduino Go, RgbLed module and a Button module. I am using 4.2.1 firmware and SDK.
Imports Microsoft.SPOT
Imports Microsoft.SPOT.Hardware
Imports SecretLabs.NETMF.Hardware
Imports SecretLabs.NETMF.Hardware.Netduino


Module Module1

    Sub Main()
    Dim Led As NetduinoGo.RgbLed = New NetduinoGo.RgbLed
    Dim PB As NetduinoGo.Button = New NetduinoGo.Button
    While (True)
      If PB.IsPressed Then
        Led.SetColor(100, 0, 100)
      Else
        Led.SetColor(0, 0, 0)
      End If
      Thread.Sleep(50)
    End While
  End Sub

End Module
But the program throws an exception "An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in NetduinoGo.RgbLed.dll"

The same program written in C# works as expected.
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.Netduino;
using System.Threading;

static class Module1
{
  public static void Main()
  {
    NetduinoGo.RgbLed Led = new NetduinoGo.RgbLed();
    NetduinoGo.Button PB = new NetduinoGo.Button();
    while ((true))
    {
      if (PB.IsPressed)
      {
        Led.SetColor(100, 0, 100);
      }
      else
      {
        Led.SetColor(0, 0, 0);
      }
      Thread.Sleep(50);
    }
  }
}
Am I doing something wrong or is this a bug?

Chuck

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.