I am using this site (Super Nintendo - Beleuchtetes, animiertes Logo - Nintendo - Circuit-Board) to copy the project, and it's giving me error codes.
Arduino: 1.8.4 (Windows 10), Board: "ATtiny25/45/85, ATtiny85, Internal 8 MHz"
In file included from sketch\SNES_RGB_1.ino.cpp:1:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:41:14: error: expected unqualified-id before numeric constant
#define LOW 0x0
^
C:\Users\xxxx\Documents\Arduino\SNES_RGB_1\SNES_RGB_1.ino:12:9: note: in expansion of macro 'LOW'
uint8_t LOW = 0;
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:40:14: error: expected unqualified-id before numeric constant
#define HIGH 0x1
^
C:\Users\xxxx\Documents\Arduino\SNES_RGB_1\SNES_RGB_1.ino:13:9: note: in expansion of macro 'HIGH'
uint8_t HIGH = 1;
^
C:\Users\xxxx\Documents\Arduino\SNES_RGB_1\SNES_RGB_1.ino: In function 'void digitalWrite(uint8_t, uint8_t)':
SNES_RGB_1:23: error: 'PORTA' was not declared in this scope
PORTA &= ~(1<<pin);
^
SNES_RGB_1:26: error: 'PORTA' was not declared in this scope
PORTA |= (1<<pin);
^
C:\Users\xxxx\Documents\Arduino\SNES_RGB_1\SNES_RGB_1.ino: In function 'int main()':
SNES_RGB_1:40: error: 'DDRA' was not declared in this scope
DDRA |= (1<<0);
^
exit status 1
'PORTA' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Attached the sketch. Using Arduino 1.8.4 and Windows 10, UNO as ISP to program ATTiny85. How do I deal with PORTA and DDRA error? I am not sure what was done on the other site as it's in German.
SNES_RGB_1.ino (2.17 KB)