Hello World, I'm working on a driver and the basic gist/setup of the method is :
public enum
{
cat = 0,
dog = 1
}
  | ||||||||||||||
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.
Community Stats
0
Neutral
User ToolsFriendswoof_woof_bark_bark hasn't added any friends yet. Latest VisitorsTopics I've StartedIntelliSense Suggestions12 December 2014 - 06:28 PM Hello World, I'm working on a driver and the basic gist/setup of the method is :
public enum { cat = 0, dog = 1 }
public void SpecificChipFunctionality(int x, animals y)
{
}
I want to make the driver so that the user - when calling the method gets some sort of prompt from intellisense suggesting that "cat" should be used. The only way that I know how to do that is:
public void SpecificChipFunctionality(int x, animals y = animals.cat)
{
}
My issue with doing this is I have another method with the same name that takes in a byte, and if I want to call the byte form, Visual Studio converts my input (ex. 0x16) to an int and executes the wrong method.
Is there a way to suggest that a specific value is used without having to set it equal?
Thanks,
woof_woof_bark_bark
Analog Input Limits02 September 2014 - 08:07 PM Hello all,
PS. this is how I set up my code while using the 3.3 V pin as the source to my potentiometer providing me with an output that is between 0-1 (the voltage as a percent of 3.3 V). When I would use 5 V as the source and change AnalogReference_float to 5 as well; my output would be 0-1 (when at or below 3.3 V) and 1 - 0.6 (when voltage to the analog input pin was 3.3 V - 5 V) The biggest desire is to at least figure out - if possible - how to change the percentage ie: I would love to make the output a voltage as a percent of X as opposed to being locked into 3.3V. Some serious issues with Netduino+204 August 2014 - 03:42 PM Hello all, I just recently got my netduino in the mail Thursday, and I seem to have several issues with it. While trying to install a basic led flashing sequence, (I had had it installed earlier but tried to write another program that ended up wrong and scratched for the time being) I am prevented by the error "An error has occurred. Please check your hardware"
Like I said the board is brand new, and I don't know what could be wrong.
Things I've tried: -Using MFDeploy, I tried looking at the device capabilities for the purpose of updating the firmware in hopes that might fix everything and sometimes if I try multiple times I get something that makes sense but most of the time I get pages of lines that read: "Failed allocation for 5 blocks, 60 bytes"
-I've also tried hitting erase in MFDeploy while trying to follow the steps to update the firmware and all I get is a constant stream of "Failed allocation for 5 blocks, 60 bytes"
-I've installed the installer for the latest firmware and my device doesn't show up.
- I've installed other programs the STDFU Tester application as instructed by the forums if the previous issue comes up, and that also seems to do nothing/doesn't recognize the device.
--------------------------------------------------------------------------------------------------------------------------\
My goal was to try and return this to factory settings as it was working for a period out of the box but the errors seem to be overwhelming and I'm trying to fix this quite quickly.
| ||||||||||||||
|
||||||||||||||
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ||||||||||||||