Link is broken
- Netduino Forums
- → scardinale's Content
scardinale's Content
There have been 13 items by scardinale (Search limited from 24-April 23)
#65194 Netduino Automation - Digital I/O Shield
Posted by scardinale on 14 June 2016 - 12:11 PM in Project Showcase
#64908 Teaser for upcoming news at MBN
Posted by scardinale on 21 February 2016 - 10:32 PM in Project Showcase
Very nice.
#64696 Deploy with custom software (without VS)
Posted by scardinale on 29 December 2015 - 08:10 PM in Visual Studio
You can always modify the code to load the Assembly form an embedded resource.
#64560 Missing System.Collections.BitArray
Posted by scardinale on 24 November 2015 - 02:12 PM in General Discussion
replace (((int) 1) << pos)) with LeftShift((int)1, pos) and you have what you need for VB.
#64557 Missing System.Collections.BitArray
Posted by scardinale on 24 November 2015 - 01:45 PM in General Discussion
The BitArray is in the full framework and not in the Micro Framework.
How is the "Hex Byte" being returned from your device. If you are receiving a Byte array and not a string, it would be much easier and faster to check the bit with the following code:
public static bool IsBitSet(byte value, byte pos) { return ((value & (((int) 1) << pos)) != 0); }
#64554 Missing System.Collections.BitArray
Posted by scardinale on 22 November 2015 - 06:59 PM in General Discussion
Can you find this method in C#?
I do not think that it is in the Micro Framework at all.
You can use the BitArray class from http://enumutils.codeplex.com/
#64539 I2C strange behavior
Posted by scardinale on 20 November 2015 - 01:48 AM in Netduino Plus 2 (and Netduino Plus 1)
Glad to help.
#64535 I2C strange behavior
Posted by scardinale on 18 November 2015 - 11:49 PM in Netduino Plus 2 (and Netduino Plus 1)
Try using this example from GHI's codeshare. It will tell you what the I2C address of your device is. If you get an value back it will tell you the 8bit address and verify that your setup is correct.
#64532 I2C strange behavior
Posted by scardinale on 18 November 2015 - 12:13 PM in Netduino Plus 2 (and Netduino Plus 1)
That is true about the addressing but NetMF uses a 7-bit addressing scheme and automatically appends the correct bit when reading or writing internally. So all you need to do is supply the 8-bit address right shifted by one.
#64527 I2C strange behavior
Posted by scardinale on 18 November 2015 - 12:32 AM in Netduino Plus 2 (and Netduino Plus 1)
0x40 is the 8 bit I2C address. NetMF uses 7 bit addressing, so try 0x40 >> 1 as your I2C Address.
#64230 Serial LCD questions
Posted by scardinale on 04 October 2015 - 04:15 PM in General Discussion
Check here https://www.ghielect...share/entry/455
#64219 Serial LCD questions
Posted by scardinale on 03 October 2015 - 10:28 PM in General Discussion
@ Dr Who. Exactly which SerialLCD are you having difficulties with? Perhaps if we knew which one we would be better able to help you.
#63601 Analog input problem
Posted by scardinale on 22 July 2015 - 01:16 AM in Netduino Plus 2 (and Netduino Plus 1)
public AnalogInput( Cpu.AnalogChannel channel, double scale, double offset, int precisionInBits )
More than likely, you are setting the precision bits to a value that is not supported by the hardware.
- Netduino Forums
- → scardinale's Content
- Privacy Policy