LiveOV7670
LiveOV7670 copied to clipboard
Can't compile for Nano Every
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
Same problem here... did you solve this?