You do not need gadgeteer and shouldn’t use it with the dev board. Start a netmf console project and use our netmf beginner’s book on the support page please.
@ Gus - I read “NETMF_for_Beginners.pdf” over the weekend. There is only one mention of RS232 com ports and it’s a link to another doc, “docs/15/uart-serial” which I also read this weekend. I also tried the example in “uart-serial” for Receiving Data. Below is the code.
Line 1:
Dim spObj As New Serialport(“COM2”)
throws an error “Type ‘Serialport’ is not defined” which started the half-day run-around to make it work.
ps - All this code ran in VB.NET. This project is a port for a POS system. The plan is to use the G80 in the OEM hardware design.
pps - Is there a list somewhere that itemizes the objects/assembly relationship so I don’t have to spend hours guessing/trial/error which assemblies to import?
ppps - Also, if I don’t need the Gadgeteer assemblies, what do I need and why is the compiler saying I need it?
Is there a list somewhere that itemizes the objects/assembly relationship so I don’t have to spend hours guessing (or bug you guys) which assemblies to import?
In case someone else’s first first time using serial ports in .NETMF is as frustrating as mine was, I’ve included a link to the problem and solution(I included a postings text for search terms too).
Hi Bonzo, welcome to the boards It’s quite confusing, but here it is. The reference is “Microsoft.SPOT.Hardware.SerialPort” But the imports line is “Imports System.IO.Ports” I know they’re not named the same, but that’s how it is.
I can’t figure out how to add fonts to a VB project, but in a C# project, adding a resource of an appropriate time will then add the getter for that type, so I think that’s what is missing - if you can figure out how to do that, then you should be able to move forward… The IMPORTS for Microsoft.SPOT and SPOT.Presentation.Media should be the two that also give you the graphics components (equivalent to Microsoft.SPOT.Graphics in C#, I think)
I did include Imports Microsoft.SPOT.Presentation.Media and Imports Microsoft.SPOT.Hardware.
I also included Microsoft.SPOT.Presentation also t no avail.
There MUST be a table somewhere that relates objects to references/extensions. For example, GetFonts needs Reference Microsoft.SPOT.ABC and Imports Microsoft.SPOT.XYZ. I know I can(and did) look through each reference looking for objects, but that’s backwards.
@ scardinale - Thanks for the reply. I clicked on “Show All Files” and there are no resources. I right click in the list and I have the option to add a resource(see attach #1) so I added one. It was named Resource1.resx by default so I left the name.
I had to change to code to: Dim f = Resource1.GetFont(Resource1.FontResources.NinaB) to fix it.
This seems to work. I can’t compile yet because “Colors.Red” doesn’t work in VB (see attach #2).
Any idea how to reference a color in VB? If I change “Colors” to “Color” I have the option for “Black” and “White”(see attach #3). Is this the correct way to do it in VB?
quote=“Billy” How do I determine, in code and/or in the IDE, how much memory(RAM/Flash) is available in the G80?
[/quote]
This returns an int that says how many bytes of RAM are available:
The size of your application is displayed after compiling, when you deploy it to your G80:
```cs
Attempting deployment...
Incrementally deploying assemblies to device
Deploying assemblies for a total size of 258712 bytes
Assemblies successfully deployed to device.