I want to add a new sensor in OpenMV
Can you tell more about the structures image_t and framebuffer_t ??
I added some code to the function
int sensor_snapshot(sensor_t *sensor, image_t *image)
and I hoped to get a black picture
uint8_t *src = MAIN_FB()->pixels;
for (uint32_t h = 1; h < MAIN_FB()->h + 1; h++) {
for (uint32_t w = 0; w < MAIN_FB()->w; w++) {
src[w*h] = 0;
}
}
but for some reason it did not work out.
I go in small steps, the first step is to change the image from the sensor to the static image from the file.
Then I wiil add a new sensor.
I hope for your answer.
Have a nice day