Skip to content

Testing

venice1200 edited this page Apr 22, 2022 · 25 revisions

Test your Display

You can test your Display with the Arduino's Serial Console or from the MiSTer's command line.

The following Commands can be used to test the connection:

Text Function
CMDCLS Clear Display
CMSORG Show Display's Startup Screen
CMDBYE Show Sorgelig's Icon

Use MiSTer's Command Line

Connect to the MiSTer command line interface (cli) via ssh or F9.
Type echo "CMDSORG" > /dev/ttyUSB0 to send the Command CMDSORG to the tty2oled Display connected to /dev/ttyUSB0.
If your device uses another Device Interface, use this Intrerface.

Use Arduino's Serial Console

You can test your Display by sending text from the Arduino's Serial console to the connected Display.
Set the Console to 115200 baud with LineFeed (Newline) \n activated.

Just type one of the Commands above and send it.

Open Serial Monitor
Use Serial Monitor

Use the tty2oled script with Command Line Parameter

  • Parameter 1: /dev/ttyUSBx Device
  • Parameter 2: Baudrate (Standard 115200)
  • Parameter 3: SD or USB Mode

Examples:

  • /media/fat/tty2oled/tty2oled.sh /dev/ttyUSB1
  • /media/fat/tty2oled/tty2oled.sh /dev/ttyUSB0 921600
  • /media/fat/tty2oled/tty2oled.sh /dev/ttyUSB2 115200 SD