Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

due example does not compile on due #17

Open
jordanfirthussf opened this issue Dec 5, 2023 · 0 comments
Open

due example does not compile on due #17

jordanfirthussf opened this issue Dec 5, 2023 · 0 comments

Comments

@jordanfirthussf
Copy link

Does not compile with Arduino Due. Tried with 2.09 and 2.04. Below is error message.

In file included from ...\Documents\Arduino\libraries\Arducam_Mega\src/Arducam_Mega.h:14:0,
                 from ...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\ArducamLink.h:11,
                 from ...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\ArducamLink.cpp:9:
...\Documents\Arduino\libraries\Arducam_Mega\src/Arducam/ArducamCamera.h:30:14: error: multiple types in one declaration
 #define Bool char
              ^
...\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\system/libsam/include/USB_device.h:74:33: note: in expansion of macro 'Bool'
 typedef unsigned char           Bool; //!< Boolean.
                                 ^
...\Documents\Arduino\libraries\Arducam_Mega\src/Arducam/ArducamCamera.h:30:14: error: declaration does not declare anything [-fpermissive]
 #define Bool char
              ^
...\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\system/libsam/include/USB_device.h:74:33: note: in expansion of macro 'Bool'
 typedef unsigned char           Bool; //!< Boolean.
                                 ^
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\ArducamLink.cpp: In member function 'void ArducamLink::reportVerInfo(Arducam_Mega*)':
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\ArducamLink.cpp:30:32: error: 'struct ArducamCamera' has no member named 'verDate'
   Serial.write(cameraInstance->verDate,3);
                                ^
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\ArducamLink.cpp: In member function 'void ArducamLink::cameraGetPicture(Arducam_Mega*)':
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\ArducamLink.cpp:77:35: error: 'struct ArducamCamera' has no member named 'cameraDataFormat'
  arducamUartWrite(cameraInstance->cameraDataFormat);
                                   ^
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\full_featured.ino: In function 'uint8_t readBuffer(uint8_t*, uint8_t)':
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\full_featured.ino:31:21: error: 'arducamDelayMs' was not declared in this scope
     arducamDelayMs(1);
                     ^
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\full_featured.ino: In function 'void setup()':
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\full_featured.ino:127:41: error: no matching function for call to 'Arducam_Mega::registerCallBack(uint8_t (&)(uint8_t*, uint8_t), int)'
   myCAM.registerCallBack(readBuffer, 200);
                                         ^
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\full_featured.ino:127:41: note: candidate is:
In file included from ...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\full_featured.ino:9:0:
...\Documents\Arduino\libraries\Arducam_Mega\src/Arducam_Mega.h:308:10: note: void Arducam_Mega::registerCallBack(BUFFER_CALLBACK, uint8_t, STOP_HANDLE)
     void registerCallBack(BUFFER_CALLBACK, uint8_t, STOP_HANDLE);
          ^
...\Documents\Arduino\libraries\Arducam_Mega\src/Arducam_Mega.h:308:10: note:   candidate expects 3 arguments, 2 provided
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\full_featured.ino: In function 'void loop()':
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\full_featured.ino:133:21: error: 'arducamDelayMs' was not declared in this scope
     arducamDelayMs(5);
                     ^

exit status 1

Compilation error: 'struct ArducamCamera' has no member named 'verDate'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant