As the basic code show below, I can understand the C part, but I don't know where are "
DDRB" and "PORTB" from.
These codes are for AVR ATTiny45 uC
Can someone point me to the right direction, and let me know what I should be googling, thanks!
DDRB" and "PORTB" from.
These codes are for AVR ATTiny45 uC
Can someone point me to the right direction, and let me know what I should be googling, thanks!
#include <avr/io.h>
int main(void)
{
// Set Port B pins as all outputs}
DDRB = 0xff;
// Set all Port B pins as HIGH
PORTB = 0xff;
return 1;