I am new to this whole .net thing. I followed the instructions from here to install all the software and i did it in order as mentioned.
[url]http://www.tinyclr.com/support[/url]
I then created a new project selecting the FEZ cobra Console Application, as i have the FEZ Cobra board.
I wanted to try the UART so i went to this example for that.
[url]GHI Electronics – Where Hardware Meets Software
when i copy and paste the code in i get the following error.
Error 1 The type or namespace name ‘SerialPort’ could not be found (are you missing a using directive or an assembly reference?)
On the same page where you started, there is a link to Microsoft’s documentation. From there you can search for SerialPort. I think you can also just put the cursor on SerialPort and hit F1 key.
Sorry guys if i sounded a bit pissy. Like i mentioned i am new to this .net embedded.
I am just so overwhelmed at what all it seems it can do, its insane. Then when i tried to do something simple like print out to the URAT i was getting nothing but problems.
I just started to read the beginners e-book when i got your post. I will take my time and read through the whole thing. Hopefully by the time i get to the end i will have calmed down and have a better grip on the whole concept.
ok, got it working now.
Coming from a C background and looking at the beginners guide example on the uart, it seems there is no printf statement. How do you guys deal with formatting of a variable.
I.E.
unsigned float z = 23.2;
printf(“Value =%4.2f\r\n”);
Those are 2 complete different questions. C# is same on our devices and on PCs so a quick search of the web should help a lot. For example, you need DateTime object instead of variables. This will make everything much easier.