개발자 모드/아두이노(Aduino)
Aduino(아두이노) 시리얼 포트 하나 더 이용하기
인생은직구
2023. 4. 23. 20:46
728x90
#include<SoftwareSerial.h>
const int rxPin = 2;
const int txPin = 3;
SoftwareSerial mySerial(rxPin, txPin);
void setup() {
// put your setup code here, to run once:
mySerial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
mySerial.println("Hello World!");
delay(1000);
}
728x90