#include <stdint.h>
#include "lib_gpio.h"

#define PORTA_B_DIR (*(volatile uint8_t *)(0x24))
#define PORTA_B_OUT (*(volatile uint8_t *)(0x25))
#define PORTA_B_OUT (*(volatile uint8_t *)(0x25))

// #define PIN4 4
// #define PIN5 5
// DDRB = (0x01)<<PIN4 | (0x01)<<PIN5; // pins 4 and 5 as output

Gpio gpio;

void setup(){
  Serial.begin(9600);
  // pinMode(13, OUTPUT);
  // DDRB = 0xFF;

  // PORTA_B_DIR = 0xFF;
  gpio.set_port_output(&PORTA_B_DIR);
  PORTB = 0x00;
  Serial.println(gpio.gpio_read(&PORTA_B_OUT, 5));
}
void loop(){
  gpio.gpio_toggle(&PORTA_B_OUT, 5);
  delay(1000);
  Serial.println(gpio.gpio_read(&PORTA_B_OUT, 5));
}