Closed hpssjellis closed 2 years ago
@hpssjellis Unfortunately not. But we fixed it for future versions in the new core. We added defines so you can check the core version in your code and provide different implementations for the different core versions. See here: https://github.com/arduino/ArduinoCore-mbed/blob/master/variants/PORTENTA_H7_M7/defines.txt#L85-L87
That said you could change in your examples for CORE_MAJOR
< 3 and use the old API. It won't catch the ones who updated the core to 2.8 but if anyone was using an older core it works.
@sebromero thank you.
@sebromero
Is there a way to make old MBED version 2.7.2 and earlier camera code work while allowing the new 2.8.0 code to also work. This would allow examples that use the camera.h library to still work for a few months until everyone has updated their boards?
pre v2.7.2 camera example. Note: CameraClass cam;
uint8_t fb[320*240];
cam.grab(fb)
post v2.8.0 camera example Note:
Camera cam(himax);
FrameBuffer fb;
cam.grabFrame(fb, 3000)