How to `Serial.print()` “full” hexadecimal bytes?

前端 未结 6 1966
猫巷女王i
猫巷女王i 2021-01-18 02:17

I am programming Arduino and I am trying to Serial.print() bytes in hexadecimal format \"the my way\" (keep reading for more information).

That is, by u

6条回答
  •  无人共我
    2021-01-18 03:12

    wow! 7 years ago and I felt here, my answer might be useful for you (hopefully not anymore) or others looking for the answers like me.

    Use "Serial.write()" to send a hex byte over serial.

    All Serial.print() eg. println, printf, sprint, print will "print" your value in ASCII.

提交回复
热议问题