0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Zybo > Chronicles blog 36 > NeoPixel communication protocol > <STX> <Pixel Number> <Green><Red><Blue><ETX>

Last updated at Posted at 2016-06-08

MicroZed Chronicles リスト http://adiuvoengineering.com/?page_id=285
@ Adam Taylor blog
https://forums.xilinx.com/t5/Xcell-Daily-Blog/Adam-Taylor-s-MicroZed-Chronicles-Part-36-Driving-Adafruit-RGB/ba-p/472854

Now because I do not want to re-invent the wheel—why would any engineer?—my simple protocol uses 8-bit ASCII characters to exchange data. (An ASCII table is here.) Using this protocol, each pixel can be can be addressed by sending the following data format:

<STX> <Pixel Number> <Green><Red><Blue><ETX>

<Pixel Number>の書式が不明。
各色情報の書式が不明。

各色は8bitなので16進数表記で0x00から0xFFを送ることになるが、そのまま送ると<STX>,<ETX>とかぶることがあるだろう。
BCD(Binary Coded Decimal)形式送信なのか、あるいはACSIIで0..255を送るのか。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?