In arduino ble rev2 software serial does not work so what can be the reason behind it and what can we do about it .
Hello, what error message/ error are you seeing? Getting garbage value in the serial monitor or nothing at all?
What is that? Is that the Nano33 BLE?
If it's the Nano33 BLE
Because Arduino has never bothered about it
The Nano33 BLE has native USB which has no relation with pins 0 (Tx) and 1 (Rx); you can use Serial1 (if not mistaken) to use the UART.
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, LOW);
Serial.begin(115200);
}
void loop() {
while (Serial.available() >= 0) {
char receivedData = Serial.read();
if (receivedData == '1') {
digitalWrite(LED_BUILTIN, HIGH);
}
else {
digitalWrite(LED_BUILTIN, LOW);
}
}
}
Please edit your post, select all code and click the </> button to apply so-called code tags and next save your post. It makes it easier to read, easier to copy and the forum software will display it correctly.
Where is the SoftwareSerial that you need?
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.