作るものめも

USB-UARTでOLEDに表示するものを作ってみる.

USB-SPIブリッジにする


1 comment

03 Jan 2011 . Edited: 03 Jan 2011

Packet format

Data Format (Sent from host)
Index data hex Description
0 Header 0x55
1 NumBytes Number of Data in decimal.
2~ Data Command and data to send.

Command ID:

1: Write 1 byte
2: Write n bytes
read next byte and check NumBytes.
3: Read 1 byte
4: Read n bytes
read next byte and check NumBytes.
5: Return Ack (For debug)

0x55: Change SPI mode
Read next byte and use as mode (0 - 3)

You need to log in to post a comment