Actual getting started with Nano Framework What they refuse to tell you in the "getting started guide"
They want yout to just load their code "because this is not this guide" yet they refuse to give you that guide. loading their demo code teaches you nothing... so here is that guide
I am using a 2.8" Cheap Yellow Display from a random china store.
Launch VS2022 and follow their guide up to the "just load this demo" but do not do that.
In VS 2022 click on "View" then scroll down and find the "Other Windows" click on that. In there is the device explorer window. you NEED this critically and it's wierd they do not tell you this in their guide.
Ok now go to solution explorer, click on references, right click and select manage nuget packages.
Click on browse, and check the "include prerelease checkbox next to the search box. now type "nanoframework" in that box. Select nanoframework.system.device.gpio and install it.
Now you can actually program this thing to do blinky.
using System;
using System.Diagnostics;
using System.Threading;
using System.Device.Gpio;
namespace MyFirstNanoApp
{
public class Program
{
public static GpioController mygpio;
public static void Main()
{
mygpio = new GpioController();
GpioPin led = mygpio.OpenPin(17, PinMode.Output);
while (true)
{
led.Write(PinValue.High);
Thread.Sleep(1000);
led.Write(PinValue.Low);
Thread.Sleep(1000);
}
}
}
}
Ok compile. now select your board in the device explorer and then click on the play button ".net Framework device" it should compile and upload and run in debugging mode. the pin 17 is for the CYD led on the back blue channel.
https://github.com/witnessmenow/ESP32-Cheap-Yellow-Display for more info on these boards.
Why the hell nearly all C# developer or library project people just utterly refuse to give you the info needed to do something to get started I'll never understand. they all act like "you should know what libraries to grab"
Granted I have been doing C# development for only 10 years so I'm a noob and should know better.
Yes I'm spicy on this because I am tired of the "sucks to be you" attitude from all the C# devs out there. we NEED to help newbies get started, yes that means hand holding. and in this case that hand hold would have taken honestly 60 seconds.
Comments
Post a Comment