// Code modified from Charles Holbrow website, How to Make (Almost) Anything, 2013. // Code further modified by Aubrey Simonson, HTM(A)A 2019 // Sets PA7 on an attiny44 high. That's it. That's all it does. //this is a library which makes it possible to state the number of a pin and have that mean something #include #define bit_get(p,m) ((p) & (m)) #define bit_set(p,m) ((p) |= (m)) #define bit_clear(p,m) ((p) &= ~(m)) #define BIT(x) (0x01 << (x)) // Both our button and LED are on PA7 (pin 6) int main() { bit_set(PORTA,BIT(6)); // Turn button pull up resistor on by setting PA6 high (the 6 is because it's pin 6) while (1) { bit_set(PORTB,BIT(6));//unclear if we have to do this, but we're specifying for it to /stay on/. } }