Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 10 months ago.
GR-Peach camera set up?
The sample app (https://os.mbed.com/teams/Renesas/code/GR-PEACH_WebCamera/wiki/Homepage) works precisely as advertised with a Rev C board and the shield/camera combination shipped by Digikey. Thanks.
My question is simple. Where does the code initialize the camera? I've not been able to get an offline build set up yet so cannot debug to find out. I wish to know where set-up happens as I'd like to try out some other sensor/lens combinations with the board.
Thanks in anticipation.
Jerry.
1 Answer
6 years, 10 months ago.
After just a quick glance through the GR-PEACH_WebCamera main.cpp
code, it looks like the camera is being "initialized" in the camera_start()
function called on line 489 in the main()
function. This camera_start()
function starts on line 161 and initializes all the pins for the camera and the display.
- Jenny, team Mbed
Hello Jenny.
Thanks for the answer. Yes, you are correct to an extent :). The thing is that the sensor itslelf needs to be set up quite precisely. This is done by writing to a set of sensor registers via an I2C connection. It is this I am trying to find. a) what data does the set up write and b) how. There is nothing obvious in the Peach BSP.
posted by 26 Jan 2018