Second is: I'm trying to set the fourth pin as open drain.The arduino code below didn't work. Where am I making a mistake?(Is code OK?)
Code: Select all
void setup()
{
REG_WRITE(GPIO_PIN4_REG, GPIO_PIN4_PAD_DRIVER);
}
void loop()
{
REG_WRITE(GPIO_OUT_W1TS_REG, BIT4); //Close output
delay(250);
REG_WRITE(GPIO_OUT_W1TC_REG, BIT4); //Set pin to ground
delay(250);
}