#include <Arduino.h>
void setup() {
// put your setup code here, to run once:
volatile uint8_t *ddrb_adr = 0x24;
// DDRB = B00001000; // set Port B pin 3 (Arduino pin 11) to output: DDRB3 => HIGH
// DDRB |= (1<<3);
// DDRB |= (1<<PB3);
*ddrb_adr |= (1<<3);
}
void loop() {
volatile uint8_t *portb_adr = 0x25;
// put your main code here, to run repeatedly:
// PORTB = B00001000; // PORTB3 => HIGH (Arduino pin 11 => HIGH)
// PORTB |= (1<<3);
// PORTB |= (1<<PB3);
*portb_adr |= 1 << 3;
delay(200);
//_delay_us(200);
// PORTB = B00000000; // PORTB# => LOW (Arduino pin 11 => LOW)
// PORTB &= ~(1<<3);
//PORTB &= ~(1<<PB3);
*portb_adr &= ~(1 << 3);
delay(200);
//_delay_us(200);
}