embeded/arduino(genuino)
아두이노 Serial.print()와 Serial.write()
구차니
2022. 11. 14. 16:20
print는 포맷에 맞추어서 출력하고
write는 변환없이 (%c ?) 출력하는 듯.
To send data without conversion to its representation as characters, use Serial.write().
|
[링크 : https://www.arduino.cc/reference/en/language/functions/communication/serial/print/]
구조체 만들고
세번째 방식으로 출력하면 되려나?
Serial.write(val) Serial.write(str) Serial.write(buf, len) |
[링크 : https://www.arduino.cc/reference/en/language/functions/communication/serial/write/]