BW16 Ameba SPI Example Running Guide
Require Material
- Adafruit 2.8" TFT Touch Shield v2
- BW16 (RTL8720DN)
- Jumper Wires
Connection Pinouts
Adafruit 2.8" TFT Touch Shield v2
Since Adafruit 2.8" TFT Touch Shield shares the same pin map with Arduino UNO:
Therefore, pin configuration for the Touch Shield can be organized as the chart below:
Adadruit TFT Touch Shield | Function |
---|---|
8 | RST |
9 | DC (Data/Command select) |
10 | CS (Chip Select) |
11 | MOSI |
12 | MISO |
13 | CLK |
RTL8720DN BW16
Step 1
Following the BW16 Getting Started guide Step 1
and Step 2
to set up the Arduino IDE.
Step 2
Go to:
“C:\Users\USER_NAME\AppData\Local\Arduino15\packages\realtek\hardware\AmebaD\3.0.8\variants\rtl8720dn_bw16\variant.h”, and check for the pin configurations for RTL8720DN BW16 development board.
Step 3
We will get the pin connections from BW16 to Adadruit TFT Touch Shield showing in the table and figure below:
BW16 | Adadruit TFT Touch Shield | ||
---|---|---|---|
PA27 | 2 | 8 | RST |
PA26 | 8 | 9 | DC (data/command select) pin |
PA15 | 9 | 10 | CS (chip select) pin |
PA12 | 12 | 11 | MOSI |
PA13 | 11 | 12 | MISO |
PA14 | 10 | 13 | CLK |
Note that this method has only been tested on Arduino SDK version v3.0.8
Program Modification
Ameba SPI
Step 2
Open Arduino IDE and locate to “ILI8341_TFT_LCD_basic.ino”:
Add in Line 32 to 35 configuration for BW16:
Compile and upload the example to BW16, after the uploading procedure is done successfully, press the Reset
button, you will see the example successfully executing in the video below: