DueVGA
DueVGA copied to clipboard
Error compilling
Hello, im new in this and i did all of the wiring, eveerything. When i am compilling the sketch this appears in the console
Arduino:1.8.9 (Windows 10), Board:"Arduino Duemilanove or Diecimila, ATmega328P"
In file included from C:\Users_____\Documents\Arduino\libraries\VGA\examples\HelloWorldColour\HelloWorldColour.ino:4:0:
C:\Users____\Documents\Arduino\libraries\VGA/VGA.h: In function 'void _v_digitalWriteDirect(int, boolean)':
C:\Users____\Documents\Arduino\libraries\VGA/VGA.h:49:11: error: 'g_APinDescription' was not declared in this scope
if(val) g_APinDescription[pin].pPort -> PIO_SODR = g_APinDescription[pin].ulPin;
^
C:\Users___\Documents\Arduino\libraries\VGA/VGA.h:50:11: error: 'g_APinDescription' was not declared in this scope
else g_APinDescription[pin].pPort -> PIO_CODR = g_APinDescription[pin].ulPin;
^
exit status 1
theres something I have to do before??? I hope you can help me, thanks.
I had the same issue. The "'g_APinDescription' was not declared in this scope" error happens when the wrong board is selected in the Arduino IDE. In my version 2:1, I couldn't select the correct "Arduino Due (programming port)" for some reason. Instead I downloaded version 1.8 and was able to install and update the board through Tools > Boards > Board manager. After restarting the IDE and compiling, the code works perfectly. I have no idea why the correct "Arduino Due" doesn't appear in the version 2 of the IDE, but this fixed the issue anyhow.