I want to transfer image to PC via Arduino leonardo.
OV7670 is non-FIFO, and no SD card connected.

I followed this blog and this youtube video.using this code. when uplaod, I got errors below:
Arduino: 1.8.5 (Windows 10), Board: "Arduino Leonardo"
error: 'ASSR' was not declared in this scope
error: 'EXCLK' was not declared in this scope
error: 'AS2' was not declared in this scope
error: 'TCCR2A' was not declared in this scope
error: 'COM2A0' was not declared in this scope
error: 'WGM21' was not declared in this scope
error: 'WGM20' was not declared in this scope
error: 'TCCR2B' was not declared in this scope
error: 'WGM22' was not declared in this scope
error: 'CS20' was not declared in this scope
error: 'OCR2A' was not declared in this scope
error: 'UBRR0H' was not declared in this scope
error: 'UBRR0L' was not declared in this scope
error: 'UCSR0A' was not declared in this scope
error: 'UCSR0B' was not declared in this scope
error: 'RXEN0' was not declared in this scope
error: 'TXEN0' was not declared in this scope
error: 'UCSR0C' was not declared in this scope
error: 'UCSR0A' was not declared in this scope
I know that error occurred because this code is only for UNO. But mine is leonardo. Changing settings (Tool->board:uno board) was still compiling error. I have search this Topic found nothing. I am so confusing, please help.