.net-micro-framework

Netduino no “Console.WriteLine”, Console does not exist in current context

两盒软妹~` 提交于 2019-12-12 09:35:51
问题 I cannot seem to get my very simple netduino program to write to the debug console; VS throws an error The name 'Console' does not exist in the current context Any ideas what might cause it to not exist? using System; using System.Text; using System.Net; using System.Net.Sockets; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.NetduinoPlus; namespace LumenReader { public class Program { public static

Compile .NET Micro for x86

扶醉桌前 提交于 2019-12-12 04:46:10
问题 I'm totally at a loss about the build process in the .NET micro source code. How am I suppose to build the source? There are project files that are not compatible with VS and the "BuildLauncher.exe" has no clear directions as to how I should be using it? I want to try and see how hard it would be to compile a runtime for embedding .NET in a native desktop application. 回答1: The OP's comment to JohnD is confusing because it references C++ on a desktop and C# on an 8-Bit CPU. If the OP could

how to send a signal to run a machine using netduino?

落爺英雄遲暮 提交于 2019-12-12 00:23:04
问题 first, i am a beginner in Netduino and micro-framework , so this is my situation : i have an application (winforms app) in a Win Pad this application it for sleeping detection, and i have a Netduino cart, what i want it's send a signal(start/stop) from my Netduino to the car window, that mean if the signal is sent the window is coming down and if it's sent for the second time the window is coming up. i am already see an example of LED : public static void Main() { var led = new OutputPort

.NET Micro Framework Unsafe code

空扰寡人 提交于 2019-12-11 02:07:01
问题 Does .NET Micro Framework support unsafe code? In other words, can I use pointers in my code for .NET Micro Framework? 回答1: From the Wikipedia page (emphasis mine): For example, the platform does not support symmetric multiprocessing, multi-dimensional arrays, machine-dependent types, or unsafe instructions . The technical white paper lists it in the omitted features too. 回答2: Although officially not supported, I have personally used and tested unsafe code in NETMF 4.2 and find that it works

How to develop for .NET Micro Framework on Linux?

旧街凉风 提交于 2019-12-10 16:41:08
问题 Is there an IDE which will allow me to develop for the .net Micro Framework on Linux? Maybe MonoDevelop? 回答1: From the Netduino forums: Soon, we'll be launching an open source project to port the .NET Micro Framework SDK to Mono for use on Mac and Linux. They have released the first alpha release of MFDeploy for Mono (Mac and Linux). 回答2: Also, Netduino community member Brian Jepson has posted instructions on how to set up the Mono toolchain on Mac/Linux to compile .NET Micro Framework code.

What is more efficient: List<T>.Add() or System.Array.Resize()?

不羁岁月 提交于 2019-12-10 02:08:28
问题 I'm trying to determine when it's more efficient to List<T>.Add() versus using the Array.Resize() method. The documentation for Array.Resize says it makes a copy of the entire array, and places it into a new object. The old object would have to be discarded. Where does this old object reside? On the stack or the heap? I don't know how List.Add() works. Does anyone know how the List.Add method compares to the static Array.Resize method? I'm interested in memory usage (and cleanup), and what is

How to pass native event handler for interrupt in state pattern code

↘锁芯ラ 提交于 2019-12-08 11:26:26
问题 I've turned to state pattern for my netmf project. Something based on this: http://www.dofactory.com/Patterns/PatternState.aspx#_self2 I have a rotary encoder knob that will act differently in each state. I've been trying to wrap my head around this and can't get anything to work on my end. I'm not sure where and how to inject the interrupt handler into each state and how to invoke the switch of the interrupt handler. Without the State Pattern the code looks something like: RotaryEncoder RE =

Connect to SQL Server from Microcontroller (Arduino or Fez with .Net Micro Framework)

一个人想着一个人 提交于 2019-12-07 05:32:01
问题 I'm looking for examples, tutorials, or just "this+this+this should work" for reading from and writing to a SQL server (2008) from a microcontroller such as the Arduino board. I've also looked at (and will probably go with) devices with the .Net Micro Framework such as the Fez Cobra. The Micro Framework does not include ADO. I'm sure this is going to involve some XML, but I can't figure out which technology to further investigate. I do not want to have an PC application to serve as a go

.NET Micro framework and unsupported features. What is the impact?

谁说胖子不能爱 提交于 2019-12-06 01:12:39
问题 I found this table listing the limitations of the .NET Micro framework in embedded development, it states that generics are not available due to the size of the image this would create. The memory footprint needs to be below 300KB, and the inclusion of generics pushes the size over this limit. Does this mean that any Micro framework code would need to go back to the ways of the ArrayList and related lack of type safety? What other impacts would these limitations have on development using the

Extension methods with .NET Micro Framework

℡╲_俬逩灬. 提交于 2019-12-05 21:37:45
It seems that extensions methods are not supported/working with the .NET Micro Framework. Is there any way to get this usefull language feature working? When you add the ExtensionAttribute class to your project you can use extension methods also in the .NET Micro Framework. namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method)] public sealed class ExtensionAttribute : Attribute { } } 来源: https://stackoverflow.com/questions/14344668/extension-methods-with-net-micro-framework