Netduino home hardware projects downloads community

Jump to content

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

Confused about Classes and initializing hardware

  • Please log in to reply
1 reply to this topic

#1 Verdris


    Advanced Member

  • Members
  • PipPipPip
  • 128 posts
  • LocationReno, NV

Posted 17 January 2013 - 09:04 AM

Suppose I write a class, call it AD7714. Inside that class but before any functions I declare a private static SPI.Configuration. Do I need to do anything in the Program class to initialize the SPI hardware or does declaring it in the AD7714 class take care of that?


Edit: Yes, the class takes care of that. This little board is amazing. I'm finding that a lot of the libraries I've written for other C++ boards are easily translatable into Netduino's C#, with the exception of certain SPI libraries. For some reason, I was never able to get certain SPI parts working with Arduinos, though with the Netduino they work flawlessly.

#2 Stefan



  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 17 January 2013 - 10:04 AM

Good to read you already found the answer to your question and that you are enjoying your netduino! :D

"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

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.