Hi,
I can't set the state of the TX (0) pin to LOW.
Board pinout. I'm using the framework-arduino-nrf52-mbedos:1.3.0 for this board.
#include <Arduino.h>
#include <ArduinoBLE.h>
#include <Arduino_LSM9DS1.h>
#define SERIALDEBUG Serial //Serial USB for monitor
#define SERIALDEVICE Serial1 //Hardware serial
#define SERIALTXPIN 0
#define SERIALRXPIN 1
#define BOARD_LED 13
void setup()
{
SERIALDEVICE.end();
delay(350);
pinMode(SERIALTXPIN, OUTPUT);
digitalWrite(SERIALTXPIN, LOW);
delay(5000);
digitalWrite(SERIALTXPIN, HIGH);
delay(5000);
}
void loop()
{
// Switch state every 10 seconds
digitalWrite(SERIALTXPIN, LOW);
digitalWrite(BOARD_LED, LOW);
delay(10000);
digitalWrite(SERIALTXPIN, HIGH);
digitalWrite(BOARD_LED, HIGH);
delay(10000);
}
This doesn't seem to work. The voltage on the TX pin is always 3.25V.
I tried to look into pins_arduino.h and pinmode_arduino.h but nothings seems to help me.
What could cause this? Can the RX and TX pins be set to digital output on this board?