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.
bill.french's Content
There have been 260 items by bill.french
(Search limited from 01-July 23)
OK I figured it out... I was receiving 4x more bytes than expected because the onewire->rs232 works in a completely unexpected way. Even once I disconnected the device, the uart still had data in it.
So, when I ask it to read a byte, it returns the byte represented in hex using ascii characters...
So, if I was expecting just this byte: 11111111 (in binary) (255 in decimal) (FF in hex)
it actually sends the ascii character F twice followed by linefeed and carriage return, for a total of four bytes.
You can use a plain old NPN transistor, which is fun to use if you want to learn about transistors, anyway. I've used various leds with 220ohm resistors on various ports without and problem so far for testing, but your mileage may vary!
I'd like to find a source for leds with resistors built in.