- Netduino Forums
- → blubblub's Content
blubblub's Content
There have been 10 items by blubblub (Search limited from 26-April 23)
#14906 Is there a moisture sensor to put in the ground?
Posted by blubblub on 01 July 2011 - 04:03 AM in General Discussion
#14892 Is there a moisture sensor to put in the ground?
Posted by blubblub on 30 June 2011 - 02:05 AM in General Discussion
#8230 Serial Interface with 5V?
Posted by blubblub on 24 January 2011 - 01:41 AM in General Discussion
#8196 Serial Interface with 5V?
Posted by blubblub on 23 January 2011 - 06:48 PM in General Discussion
So I think that I’m a little over my head here. I bought the Sparkfun RGB LED Matrix controller. It requires a 5V power supply which can be provided from the netduino plus but the SPI interface description states that it requires 5V on it CS pin for “high”. The max ouput on the netduino i/o pins is 3.3V right? What’s the best way to interface with this controller? Did I mention I’m a newb
Thanks in advance!
#6478 Xml Reader
Posted by blubblub on 24 December 2010 - 04:44 PM in Netduino Plus 2 (and Netduino Plus 1)
#6460 Xml Reader
Posted by blubblub on 24 December 2010 - 06:40 AM in Netduino Plus 2 (and Netduino Plus 1)
The thread '<No Name>' (0x2) has exited with code 0 (0x0). #### Exception System.NotSupportedException - CLR_E_NOT_SUPPORTED (1) #### #### Message: #### System.Xml.XmlReader::Create [IP: 00c7] #### #### System.Xml.XmlReader::Create [IP: 0005] #### #### NetduinoApplication1.StorageData::XmlFromStorage [IP: 0020] #### #### NetduinoApplication1.Program::Main [IP: 0009] #### A first chance exception of type 'System.NotSupportedException' occurred in System.Xml.dll
using (FileStream fs = new FileStream("\\SD\\test.xml", FileMode.Open, FileAccess.Read, FileShare.None, 512)) { using (StreamReader sr = new StreamReader(fs)) { Stream s = sr.BaseStream; XmlReader r = XmlReader.Create(s); while (r.Read() && !r.EOF) {
#6373 Xml Reader
Posted by blubblub on 22 December 2010 - 02:16 PM in Netduino Plus 2 (and Netduino Plus 1)
#6356 Xml Reader
Posted by blubblub on 22 December 2010 - 04:08 AM in Netduino Plus 2 (and Netduino Plus 1)
#6236 CLR_E_OUT_OF_MEMORY
Posted by blubblub on 19 December 2010 - 05:54 AM in Netduino Plus 2 (and Netduino Plus 1)
FileStream fs = new FileStream("\\SD\\test.xml", FileMode.Open, FileAccess.Read); int nBits = 512; byte[] ByteArray = new byte[nBits]; int nBytesRead = fs.Read(ByteArray, 0, nBits); string strLine = ""; char[] CharArray = Encoding.UTF8.GetChars(ByteArray); foreach (char i in CharArray) { strLine = strLine + i; } Debug.Print(strLine);
#6219 CLR_E_OUT_OF_MEMORY
Posted by blubblub on 18 December 2010 - 10:47 PM in Netduino Plus 2 (and Netduino Plus 1)
I'm trying to load an xml file residing on the SD Card. The original file is 82kb in size and will not load. But if I reduce the file's size to 1kb it works. The error "CLR_E_OUT_OF_MEMORY" occurs when attempting to load the 82kb file. Does a limitation exist that I'm not aware of? Thanks in advance!!! My code below:
using (StreamReader r = new StreamReader("\\SD\\test.xml")) { if (r.BaseStream.Length > 0) { do { string line = r.ReadToEnd(); Debug.Print(line); r.Close(); } while (!r.EndOfStream); } }
- Netduino Forums
- → blubblub's Content
- Privacy Policy