Skip to content

Instantly share code, notes, and snippets.

@bradford-hamilton
Last active April 24, 2023 19:35
Show Gist options
  • Save bradford-hamilton/b2775534ec2f3ec3b7a6302148fe7914 to your computer and use it in GitHub Desktop.
Save bradford-hamilton/b2775534ec2f3ec3b7a6302148fe7914 to your computer and use it in GitHub Desktop.
ATtiny85 - Initial DDRB & PORTB definition before including the I/O memory offset for SFRs
// Port B data direction register
#define DDRB *((volatile unsigned char*)0x17)
// Port B data register
#define PORTB *((volatile unsigned char*)0x18)
int main() {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment