I2C

In this document, we use Leetop A206 carrier board. Operations can be slightly different if you use other models of carrier boards.

The carrier board of Mixtile Core 3588E (hereinafter referred to as Core 3588E) provides access to several peripheral interfaces through the 40-pin expansion header, including VCC, GND, GPIO, I2C, I2S, UART, and SPI interfaces. The following figure shows the pin layout.

Figure 1. 40-pin expansion header of Core 3588E

This document describes how to connect an OLED display module via the I2C interfaces.

For more information about pin assignment and definitions of Core 3588E, see Core 3588E Pin Definition.

Preparations

Steps

Step 1. Connect the OLED display module to the 40-pin header. The pin matching is as follows:

Figure 2. Pin matching for I2C

Step 2. Download the oled-i2c file and copy it to the Core 3588E directory.

  • Using the ADB tool:
adb push oled-i2c /home/mixtile
  • Using the serial communication tool or SSH:
scp oled-i2c mixtile@Core 3588E IP address:/home/mixtile

Step 3. Navigate to the Core 3588E console.

Step 4. Enter the directory /home/mixtile and grant permission to access oled-i2c:

sudo chmod +x oled-i2c

Step 5. Under the directory /home/mixtile, run the following command:

sudo ./oled-i2c /dev/i2c-1

Note:

If you connect the display module to I2C0, run sudo ./oled-i2c /dev/i2c-0.

You can see that the OLED display module shows text Core3588E, as shown below.

Figure 3. OLED display via the I2C interface
Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support