how do peeps, need some help. last year as part of my redundancy my old boss gave me a 3d printer/ scanner combo, great huh? he must really like me, although its an xyz davinci 1.0 aio, im not looking a gift horse in the mouth, its helped me do lots of really useful (unless you ask my wife about it) stuff. the issue is that they put a chip in the bottom of their filament carts that makes sure you can only use their filament, some time ago a guy named in the sketch below decided he had had enough of that and developed the attached sketch to reset the chip, it works great, although not for 400m of filament which means when you buy it by the kilo it needs resetting twice for each spool, anyway thats not the problem, ive been using an official uno to do all the resetting but im now using that for another project, it would suit my needs better to be using an attiny85 (which i have a handful of already) so that it can be stored inside the machine out of the way and only powered when i need to reset the cart. but im getting this error
C:\Users\humphreys family\Documents\Arduino\xyz_cart_reset\xyz_cart_reset.ino: In function 'void set_bus(boolean)':
xyz_cart_reset:96: error: 'PORTD' was not declared in this scope
PORTD=(PORTD&0x7f)|(!!state)<<7;
^
C:\Users\humphreys family\Documents\Arduino\xyz_cart_reset\xyz_cart_reset.ino: In function 'boolean read_bus()':
xyz_cart_reset:100: error: 'PIND' was not declared in this scope
return !!(PIND&0x80);
^
C:\Users\humphreys family\Documents\Arduino\xyz_cart_reset\xyz_cart_reset.ino: In function 'void unio_standby_pulse()':
xyz_cart_reset:92: error: 'DDRD' was not declared in this scope
#define UNIO_OUTPUT() do { DDRD |= 0x80; } while (0)
^
C:\Users\humphreys family\Documents\Arduino\xyz_cart_reset\xyz_cart_reset.ino:109:3: note: in expansion of macro 'UNIO_OUTPUT'
UNIO_OUTPUT();
^
C:\Users\humphreys family\Documents\Arduino\xyz_cart_reset\xyz_cart_reset.ino: In function 'boolean read_bit()':
xyz_cart_reset:93: error: 'DDRD' was not declared in this scope
#define UNIO_INPUT() do { DDRD &= 0x7f; } while (0)
^
C:\Users\humphreys family\Documents\Arduino\xyz_cart_reset\xyz_cart_reset.ino:130:3: note: in expansion of macro 'UNIO_INPUT'
UNIO_INPUT();
^
xyz_cart_reset:92: error: 'DDRD' was not declared in this scope
#define UNIO_OUTPUT() do { DDRD |= 0x80; } while (0)
^
C:\Users\humphreys family\Documents\Arduino\xyz_cart_reset\xyz_cart_reset.ino:132:3: note: in expansion of macro 'UNIO_OUTPUT'
UNIO_OUTPUT();
^
C:\Users\humphreys family\Documents\Arduino\xyz_cart_reset\xyz_cart_reset.ino: In function 'boolean read_byte(byte*, boolean)':
xyz_cart_reset:93: error: 'DDRD' was not declared in this scope
#define UNIO_INPUT() do { DDRD &= 0x7f; } while (0)
^
C:\Users\humphreys family\Documents\Arduino\xyz_cart_reset\xyz_cart_reset.ino:147:3: note: in expansion of macro 'UNIO_INPUT'
UNIO_INPUT();
^
xyz_cart_reset:92: error: 'DDRD' was not declared in this scope
#define UNIO_OUTPUT() do { DDRD |= 0x80; } while (0)
^
C:\Users\humphreys family\Documents\Arduino\xyz_cart_reset\xyz_cart_reset.ino:151:3: note: in expansion of macro 'UNIO_OUTPUT'
UNIO_OUTPUT();
^
exit status 1
'PORTD' was not declared in this scope
am i asking too much of the tiny fella or is there something else im missing here? any help would as usual be much appreciated.