Need help folks!, how can i make C328 Serial Camera Library work on Arduino IDE 1.0.3?
here are the errors:
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:24:22: error: WProgram.h: No such file or directory
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:25:24: error: WConstants.h: No such file or directory
In file included from jan4.ino:1:
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:120: error: expected `)' before '&' token
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:128: error: 'byte' has not been declared
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:130: error: 'byte' has not been declared
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:133: error: ISO C++ forbids declaration of 'SerialBase' with no type
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:133: error: expected ';' before '*' token
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:135: error: 'byte' does not name a type
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:136: error: 'byte' does not name a type
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:137: error: 'byte' has not been declared
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:137: error: 'byte' has not been declared
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:137: error: 'byte' has not been declared
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:137: error: 'byte' has not been declared
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:137: error: ISO C++ forbids declaration of 'byte' with no type
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:139: error: 'byte' has not been declared
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:142: error: ISO C++ forbids declaration of 'byte' with no type
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:143: error: ISO C++ forbids declaration of 'byte' with no type
but after changing the line
#include "WProgram.h" into #include "Arduino.h"
here are the errors
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:25:24: error: WConstants.h: No such file or directory
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:120: error: expected `)' before '&' token
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:133: error: ISO C++ forbids declaration of 'SerialBase' with no type
C:\arduino projects\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:133: error: expected ';' before '*' token
please see attached files for the library i've used, please help..thanks!
i use the arduino 1.0.3...so why is it there is error if the code is correct...
here is the error...
In file included from serial_cam.ino:3:
D:\arduino-1.0.3-windows\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:26:20: error: wiring.h: No such file or directory
In file included from serial_cam.ino:3:
D:\arduino-1.0.3-windows\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:136: error: 'byte' has not been declared
D:\arduino-1.0.3-windows\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:142: error: 'byte' has not been declared
D:\arduino-1.0.3-windows\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:148: error: 'byte' does not name a type
D:\arduino-1.0.3-windows\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:149: error: 'byte' does not name a type
D:\arduino-1.0.3-windows\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:150: error: 'byte' has not been declared
D:\arduino-1.0.3-windows\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:150: error: 'byte' has not been declared
D:\arduino-1.0.3-windows\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:150: error: 'byte' has not been declared
D:\arduino-1.0.3-windows\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:150: error: 'byte' has not been declared
D:\arduino-1.0.3-windows\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:150: error: ISO C++ forbids declaration of 'byte' with no type
D:\arduino-1.0.3-windows\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:152: error: 'byte' has not been declared
D:\arduino-1.0.3-windows\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:155: error: ISO C++ forbids declaration of 'byte' with no type
D:\arduino-1.0.3-windows\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:156: error: ISO C++ forbids declaration of 'byte' with no type
serial_cam.ino: In function 'void loop()':
serial_cam:65: error: invalid conversion from 'void ()(uint16_t, uint16_t, uint16_t, byte)' to 'void ()(uint16_t, uint16_t, uint16_t, int)'
serial_cam:65: error: initializing argument 3 of 'bool CameraC328R::getJPEGPicture(CameraC328R::PictureType, uint16_t, void ()(uint16_t, uint16_t, uint16_t, int))'
i really need to correct this code..please help me! =(
so why is it there is error if the code is correct...
Well, clearly the code is NOT correct. One punctuation mark is enough. More than that pisses people off. You want help, it's a good idea not to piss people off.
D:\arduino-1.0.3-windows\arduino-1.0.3\libraries\CameraC328R/CameraC328R.h:26:20: error: wiring.h: No such file or directory
Do you have a wiring board? Are you using the Wiring IDE? I didn't think so. So, the library is not really intended for an Arduino.
You could, of course, change wiring.h to Arduino.h to get rid of that message. And, doing that will get rid of more of the messages.
I have been searched this library but now i only found this link; http://arms22.googlecode.com/files/CameraC328R.zip
Codes written in 2009 and now this library did not work on with my camera.
I also need this library, if anybody knows up-to-date files and shares it, i will be grateful.