Чт июл 14, 2022 18:54:01
#include <SoftwareSerial.h>
SoftwareSerial SerialBT(4, 3); // указываем пины rx и tx соответственно
void setup() {
pinMode(13, OUTPUT);
digitalWrite(13, 1);
delay(1000);
digitalWrite(13, 0);
SerialBT.begin(9600);
}
void loop() {
if (SerialBT.available() > 0)
{
byte ff = SerialBT.read();
digitalWrite(13, 1);
}
}
Чт июл 14, 2022 19:20:12
Not all pins on the Leonardo and Micro boards support change interrupts, so only the following can be used for RX: 8, 9, 10, 11, 14 (MISO), 15 (SCK), 16 (MOSI).
Пт июл 15, 2022 06:20:46
Пт июл 15, 2022 07:46:06