NetduinoGO RGB Module
#1
Posted 29 October 2012 - 05:21 PM
.
I have other projects running.
Here is what I have.
using SecretLabs.NETMF.Hardware.NetduinoGo;
namespace RGB_Demo
{
public class Program
{
static NetduinoGo.RGBLed led = new NetduinoGo.RgbLed(GoSockets.Socket8); // this is the socket for the first LED
public static void Main()
I get this error message.
Error 1 The type or namespace name 'NetduinoGo' could not be found (are you missing a using directive or an assembly reference?) C:\Users\AZ\documents\visual studio 2010\Projects\RGB_Demo\RGB_Demo
What am I messing?
Thanks Martin
#2
Posted 29 October 2012 - 05:37 PM
--
Asbjørn
#3
Posted 30 October 2012 - 05:18 AM
#4
Posted 30 October 2012 - 01:53 PM
Hi Martin,Where do I find it?
In order to add the module reference you need to right click on Add Reference in the Visual Studio Solution Explorer.
AddReference.gif 62.82KB 12 downloads
In the Add Reference dialog box, go to the .Net tab, and look for the NetduinoGo.RgbLed library.
ReferenceAdded.gif 82.89KB 11 downloads
Once added, you'll be able to use the two methods:
public void SetBrightness(double brightness); public void SetColor(byte red, byte green, byte blue);
Also I noticed you will need to correct the small typo "static NetduinoGo.RGBLed" to "static NetduinoGo.RgbLed".
I hope this helps.
Cheers,
Steve
Twiiter: https://twitter.com/Gutworks
#5
Posted 30 October 2012 - 01:57 PM
--
Asbjørn
#6
Posted 30 October 2012 - 02:11 PM
Hi neslekkim,I was searching around to find the exact information about what to reference for this (am not close to the computer with the tools on), why is this information so hard to find?
There is a post pinned at the top of the Netduino Go forum page called, "Early "Getting Started with Netduino Go" software and instructions" which details the use of the some of the first modules. To find out more about a classes contructors, methods, and members, I often just highlight a method and hit F12 (or right click and select Go to Definition) which will show you all the internal goodies of the class.
I do agree, the forum can be difficult to find some things. I find some great posts get buried deep and the search features of the forum are not the greatest. Generally I just use Google to search the forums when I need to find something. Also I highly suggest looking through the Wiki where you can find some great tutorials and code samples. For instance here's a useful page listing all of the Go Modules.
Steve
Twiiter: https://twitter.com/Gutworks
#7
Posted 30 October 2012 - 03:08 PM
Edited by neslekkim, 30 October 2012 - 03:09 PM.
--
Asbjørn
#8
Posted 30 October 2012 - 03:41 PM
Hi Martin,
In order to add the module reference you need to right click on Add Reference in the Visual Studio Solution Explorer.
AddReference.gif 62.82KB 12 downloads
In the Add Reference dialog box, go to the .Net tab, and look for the NetduinoGo.RgbLed library.
ReferenceAdded.gif 82.89KB 11 downloads
Once added, you'll be able to use the two methods:
public void SetBrightness(double brightness); public void SetColor(byte red, byte green, byte blue);
Also I noticed you will need to correct the small typo "static NetduinoGo.RGBLed" to "static NetduinoGo.RgbLed".
I hope this helps.
Cheers,
Steve
#9
Posted 30 October 2012 - 03:44 PM
#10
Posted 30 October 2012 - 03:45 PM
Edited by neslekkim, 30 October 2012 - 03:48 PM.
--
Asbjørn
#11
Posted 30 October 2012 - 04:13 PM
Have you installed the Netduino SDK? You can find instructions on how to do so here. The order of installation is very important. If you are still having troubles I would suggest uninstalling the Netduino SDK and the .Net Micro Framework (there is no need to uninstall Visual Studio) and reinstall everything in the order listed on the downloads page.Thanks.
in the Add reference panel the .NET is empty.
Steve
Twiiter: https://twitter.com/Gutworks
#12
Posted 30 October 2012 - 05:05 PM
#13
Posted 01 November 2012 - 12:36 PM
Hi Martin,
I thing I will start over and reload everything.
Just wondering if you have made any progress and if you need any extra help?
Steve
Twiiter: https://twitter.com/Gutworks
#14
Posted 01 November 2012 - 09:13 PM
Hi Martin,
Just wondering if you have made any progress and if you need any extra help?
Steve
No I deleted all microsoft .net programs and downloaded from this site "downloads" via Run.
Have same problem. The add reference is empty.
this is the program...
The NetdurinoGo needs an assembly reference
Error 1 The type or namespace name 'NetduinoGo' could not be found (are you missing a using directive or an assembly reference?) C:\Users\AZ\documents\visual studio 2010\Projects\RGB_Demo\RGB_Demo\Program.cs 14 16 RGB_Demo
using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.NetduinoGo;
namespace RGB_Demo
{
public class Program
{
//NetduinoGo.RgbLed led = new NetduinoGo.RgbLed();
//static NetduinoGo.RgbLed led = new NetduinoGo.RgbLed(GoSockets.Socket8); // this is the socket for the first LED
static NetduinoGo.RgbLed redLed = new NetduinoGo.RgbLed(GoSockets.Socket8);
public static void Main()
{
// write your code here
#15
Posted 01 November 2012 - 09:48 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users