Go Down

Topic: C328 Serial Camera Library (Read 2 times) previous topic - next topic

rovelle

please help me..i really need to correct this code.... :~

PaulS

Quote
please help me..i really need to correct this code....

One punctuation mark is sufficient.

What is wrong with the code? Why do you think it needs fixing.

We've hired a psychic, but Andre's start date is the 12th of never. If you need help before then, you need to define what help it is you need.

rovelle

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! =(

PaulS

Quote
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.

Quote
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.

rovelle

I'm sorry because i am only a newbie in arduino..and i am studying it yet..sorry for my english...could you please help to correct this code?

Go Up