Skip to main content

Flex display

3D render of the assembled flex display PCB

A USB adapter for streaming pictures or video to the 3.5-inch bare ER-TFT035IPS-6 panel.

Download datasheet (PDF)

Modeled component height: approximately 3.3 mm above the component-side PCB surface. The CAD files show the populated carrier. Allow separate space for the panel and flex cable.

Usage​

With USB unplugged, seat and latch the ribbon in the 50-pin connector. Choose Add device → Flex display and select Test pattern. You can then choose a local image or video and set backlight brightness. Support the panel separately and leave room for the flex to bend.

Protocol​

USB serial · 115200 baud · DTR on. Send one ASCII command per line, ending in LF (\n).

CommandPurposeReply
idIdentify the device and firmware.DEVICE tscircuit display 1.1.0
helpList supported commands.One line of command syntax.
initInitialize the panel before sending pixels.OK init
brightnessRead the backlight setting.BRIGHTNESS N (0–100)
brightness 50Set backlight brightness in percent (0–100).BRIGHTNESS 50
imageBegin a 480 × 320 still frame. Send 307200 bytes.READY, then OK frame after the payload.
videoBegin a 120 × 80 video frame. Send 19200 bytes.READY, then OK frame after the payload.

Sending a frame​

Send init and wait for OK init. Send image or video and wait for READY before writing pixels. Write RGB565 in row order, high byte first, with no trailing newline. Wait for OK frame before sending the next command. Video frames expand to fill the panel and carry no audio.

Legacy binary commands

Send A5 5A, opcode, sequence number, payload length, payload, then CRC-8. The CRC covers the opcode through the last payload byte (polynomial 0x07, initial value zero). The maximum payload is 48 bytes. The reply is AC, the same sequence number, and a status byte.

OpcodePayloadAction
0x01Empty.Reset the panel.
0x02Panel command byte, followed by up to 47 data bytes.Write a command to the panel.
0x031–48 data bytes.Write data to the panel.
0x04One byte, 0 or 1.Blank the backlight or restore the chosen brightness.
0x20One byte, 0 or 1.Turn the indicator off or on.

Status 0 means success, 2 means CRC mismatch, 3 means excessive length, and 4 means an invalid opcode or argument. Status 5 means the panel needs a reset.

Protocol implementation

Mounting​

The PCB measures 32 × 42 mm, with 4 × Ø2.2 mm clearance holes for M2 screws. The centre-to-centre spacing is 19 × 25 mm. Orient the component side with the J1 USB-C port at the bottom. Measure right and up from the lower-left corner of the PCB in the component-side view. The hole centres are at X = 6.5, 25.5 mm and Y = 8.5, 33.5 mm.

Component-side plan and isometric view showing 4 mounting holes and the J1 USB-C receptacle on the bottom edge.

Open full-size drawing · Drawing TSX · PCB source