Netduino + LinkSprite JPEG Camera
#1
Posted 15 March 2011 - 12:44 PM
---
Twitter: @rikp
#2
Posted 15 March 2011 - 11:30 PM
- Rik P. likes this
#3
Posted 16 March 2011 - 09:48 AM
It is already done http://www.fezzer.co...camera-library/
Well that certainly saves a *heap* of time - thanks for the tip
---
Twitter: @rikp
#4
Posted 13 October 2011 - 06:40 PM
This link no longer resolves. Does anyone have an update or a copy of the library?It is already done http://www.fezzer.co...camera-library/
#5
Posted 28 October 2011 - 11:55 AM
This link no longer resolves. Does anyone have an update or a copy of the library?
I'd second that - the link no longer works. HELP!
#6
Posted 28 October 2011 - 11:59 AM
-- H.L. Mencken, "What I Believe"
#7
Posted 28 October 2011 - 12:00 PM
FEZ code repository is hosted on code.tinyclr.com, there is Linksprite Camera Library entry there (not sure it's the same).This link no longer resolves. Does anyone have an update or a copy of the library?
Edit: Stefan W. beats me to it ;- )
#8
Posted 13 November 2011 - 05:15 PM
#9
Posted 16 November 2011 - 01:34 PM
Does anyone have this working? I used the code in the links above but I'm having 2 strange issues.
1. The code runs fine if I step-through it, but doesn't work if I just run it. Should I be introducing some sleep() time after writing to the camera?
to naswer my own questions -> yes you need to pause about 100ms after sending a command to the camera
2. When stepping through the code, the Port.Read() command throws a System.Exception when there are not more bytes read instread of returning 0 bytes read. Any thoughts on why this is happening?
If you try to read more bytes then the buffer has, you will always time-out (remember you did set the port time to something reasonable like 250ms) and thus will almost always have a system.exception which will need to be thrown away
private in Read(byte[] buffer, int bytes) { int i = 0; try { i = port.Read(buffer, 0, bytes) } catch (Exception e) { } return i; }[
Thanks
Andrew
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users