Trouble with error code and ATTiny85

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)

In an Arduino sketch, 'LOW' is defined as '0' so the compiler sees:

 uint8_t 0x0 = 0;

It is naturally confused. Don't use the name "LOW" for any of your variables.

Changed HIGH and LOW to just H and L, no more error in those. Also I had to read a bit about ATTiny ports, it seems in IDE it should be PORTB and DDRB rather than PORTA and DDRA. ¯_(ツ)_/¯ I am not sure what program the German coder used but it didn't work on my end till I changed the port address.

If it was referring to PORTA, it was not written for an ATTiny85.

That's what the coder used. Quote from the German site:

1x Attiny45 (oder Attiny85, oder einen Attiny24 (Danke sanni, für den Port!)) und einen passenden Programmer

Translated

Attiny45 (or Attiny85, or an Attiny24 (thanks sanni, for the port!) ) And a suitable programmer

24/44/84 is the only one with port A so somewhere the code was updated for 24/44/84 and forgot to have separate 45/85 that has only port B