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

Can't compile for Nano Every #36

Open
FurTrader opened this issue Mar 22, 2023 · 1 comment
Open

Can't compile for Nano Every #36

FurTrader opened this issue Mar 22, 2023 · 1 comment

Comments

@FurTrader
Copy link

I think its an issue with the board definitions.

The IDE gives a list of "not declared in this scope" errors if I try to use the Nano Every.
On an older nano it compiles fine.

F:\Downloads\LiveOV7670-master\LiveOV7670-master\src\LiveOV7670\LiveOV7670.ino: In function 'void setup()':
LiveOV7670:14:3: error: 'CLKPR' was not declared in this scope
   CLKPR = 0x80; // enter clock rate change mode
   ^~~~~
F:\Downloads\LiveOV7670-master\LiveOV7670-master\src\LiveOV7670\LiveOV7670.ino:14:3: note: suggested alternative: 'CLKCTRL'
   CLKPR = 0x80; // enter clock rate change mode
   ^~~~~
   CLKCTRL
In file included from C:\Users\user\Documents\Arduino\libraries\LiveOV7670Library/BufferedCameraOV7670.h:8:0,
                 from C:\Users\user\Documents\Arduino\libraries\LiveOV7670Library/BufferedCameraOV7670_QQVGA_10hz.h:8,
                 from F:\Downloads\LiveOV7670-master\LiveOV7670-master\src\LiveOV7670\ExampleTftBufferedCameraFrame.cpp:13:
C:\Users\user\Documents\Arduino\libraries\LiveOV7670Library/CameraOV7670.h: In member function 'void CameraOV7670::waitForVsync()':
C:\Users\user\Documents\Arduino\libraries\LiveOV7670Library/CameraOV7670.h:218:10: error: 'OV7670_VSYNC' was not declared in this scope
   while(!OV7670_VSYNC);
          ^~~~~~~~~~~~
C:\Users\user\Documents\Arduino\libraries\LiveOV7670Library/CameraOV7670.h:218:10: note: suggested alternative: 'COM10_HSYNC'
   while(!OV7670_VSYNC);
          ^~~~~~~~~~~~
          COM10_HSYNC
C:\Users\user\Documents\Arduino\libraries\LiveOV7670Library/CameraOV7670.h: In member function 'void CameraOV7670::waitForPixelClockLow()':
C:\Users\user\Documents\Arduino\libraries\LiveOV7670Library/CameraOV7670.h:227:9: error: 'OV7670_PIXEL_CLOCK' was not declared in this scope
   while(OV7670_PIXEL_CLOCK);
         ^~~~~~~~~~~~~~~~~~
C:\Users\user\Documents\Arduino\libraries\LiveOV7670Library/CameraOV7670.h: In member function 'void CameraOV7670::waitForPixelClockHigh()':
C:\Users\user\Documents\Arduino\libraries\LiveOV7670Library/CameraOV7670.h:231:10: error: 'OV7670_PIXEL_CLOCK' was not declared in this scope
   while(!OV7670_PIXEL_CLOCK);
          ^~~~~~~~~~~~~~~~~~
C:\Users\user\Documents\Arduino\libraries\LiveOV7670Library/CameraOV7670.h: In member function 'void CameraOV7670::ignoreHorizontalPaddingRight()':
C:\Users\user\Documents\Arduino\libraries\LiveOV7670Library/CameraOV7670.h:250:9: error: 'OV7670_PIXEL_CLOCK' was not declared in this scope
   while(OV7670_PIXEL_CLOCK) pixelTime++;
         ^~~~~~~~~~~~~~~~~~
C:\Users\user\Documents\Arduino\libraries\LiveOV7670Library/CameraOV7670.h:251:10: error: 'OV7670_PIXEL_CLOCK' was not declared in this scope
   while(!OV7670_PIXEL_CLOCK) pixelTime++;
          ^~~~~~~~~~~~~~~~~~
C:\Users\user\Documents\Arduino\libraries\LiveOV7670Library/CameraOV7670.h: In member function 'void CameraOV7670::readPixelByte(uint8_t&)':
C:\Users\user\Documents\Arduino\libraries\LiveOV7670Library/CameraOV7670.h:256:3: error: 'OV7670_READ_PIXEL_BYTE' was not declared in this scope
   OV7670_READ_PIXEL_BYTE(byte);
   ^~~~~~~~~~~~~~~~~~~~~~
F:\Downloads\LiveOV7670-master\LiveOV7670-master\src\LiveOV7670\ExampleTftBufferedCameraFrame.cpp: In function 'void sendPixelByte(uint8_t)':
ExampleTftBufferedCameraFrame.cpp:138:3: error: 'SPDR' was not declared in this scope
   SPDR = byte;
   ^~~~
F:\Downloads\LiveOV7670-master\LiveOV7670-master\src\LiveOV7670\ExampleTftBufferedCameraFrame.cpp:138:3: note: suggested alternative: 'SDA'
   SPDR = byte;
   ^~~~
   SDA
exit status 1
'CLKPR' was not declared in this scope
@Masadido
Copy link

Same problem here... did you solve this?

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

2 participants