Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

unexpectedly's Content

There have been 2 items by unexpectedly (Search limited from 29-January 20)


By content type

See this member's

Sort by                Order  

#52482 Is there any proper documentation for OneWire class?

Posted by unexpectedly on 30 August 2013 - 11:22 PM in Visual Studio

It is considered good practice to use constants instead of hard-coded magic numbers, so you could define for example OneWireCommand class or enum with SkipRom = 0xCC, ReadScratchpad = 0xBE and use symbolic names, e.g. ow.WriteByte(OneWireCommand.SkipRom). I've done this in my alternative implementation.

 

Thank you. Emphasis added to the quote is by me. I was twitching about this before I got to your post. I'm new to netduino, C#, .NET, all that, but always make many many comments in your code. Two recent highlights while porting Adafruit ST7735 from AVR to PIC32:

 
[font="'courier new', courier, monospace;"][color=#008000;]//  Magical unicorn dust, 16 args[/color][/font]
[font="'courier new', courier, monospace;"][color=#008000;]//  (seriously though, not sure what these config values represent)[/color][/font]
 
... and later 
 
[color=#008000;][font="'courier new', courier, monospace;"]//  Sparkles and rainbows, 16 args[/color][/font]
[color=#008000;][font="'courier new', courier, monospace;"]//  (ditto)[/color][/font]
 
That kinda made my day.



#52481 Getting started with VC# 2010

Posted by unexpectedly on 30 August 2013 - 11:04 PM in Visual Studio

Hi,

 

I picked up a netduino (not 2) from Radio Shack on my way in to work. I'm trying to figure out the "right way" to incorporate someone else's files into my project. Specifically, the Real-time clock (DS1307) and AdaFruit ST7735 TFT display from the netduino helpers. I don't quite want to add ALL of the files. Though I did sort-of try to do that and I don't know how to do that either in visual studio.

 
I literally just followed http://www.netduino.com/downloads/ and did these in the following order:
 
  1 Microsoft Visual C# Express 2010
  2 .NET Micro Framework SDK v4.1
  3 Netduino SDK v4.1.0 (64-bit)
 
Kudos to this guy for making a video, however, unlike netduino helpers, he compiled it all first and doesn't have ST7735 :)
 
I'm scouring the net for "getting started with visual studio and netduino" ... can't wait to get really working with the netduino for my project. And I'm pretty impressed with the IDE so far. I love the completion while I was working on the blink project.
 
Thanks in advance!
Chris




home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.