get current value of gpio PORTA. #define I2C_SDA_PIN 7 (gpio_porta_read() & BIT(I2C_SDA_PIN))