![]() |
MSPM0_ValvanoWare
1.0
ECE445L starter code
|
Arabic output to LCD. More...
#include <stdint.h>Go to the source code of this file.
Enumerations | |
| enum | Arabic_t { null , alif , ayh , baa , daad , daal , dhaa , dhaal , faa , ghayh , haa , ha , jeem , kaaf , khaa , laam , meem , noon , qaaf , raa , saad , seen , sheen , ta , thaa , twe , waaw , yaa , zaa , space , dot } |
| Arabic character set. | |
Functions | |
| void | Arabic_SetCursor (uint32_t newX, uint32_t newY) |
| Move Arabic cursor. More... | |
| void | Arabic_OutChar (Arabic_t ch) |
| Output an Arabic character. More... | |
| void | Arabic_OutString (Arabic_t *ptr) |
| Output an Arabic string. More... | |
Arabic output to LCD.
Arabic character/string output to ST7735R display
| Pin | Connection | Description |
|---|---|---|
| 10 | +3.3 | Backlight |
| 9 | nc | SPI1 MISO (used for SDC) |
| 8 | PB9 | SPI1 SCLK clock out |
| 7 | PB8 | SPI1 PICO data out |
| 6 | PB6 | SPI1 CS0=TFT_CS |
| 5 | nc | CARD_CS (used for SDC) |
| 4 | PA13 | Data/Command(GPIO), high for data, low for command |
| 3 | PB15 | RESET, low to reset, (GPIO) |
| 2 | +3.3 | VCC |
| 1 | Gnd | ground |
| Pin | Connection |
|---|---|
| VCC | +3.3 V |
| GND | Ground |
| !SCL | SPI1 SCLK: PB9 clock |
| !SDA | SPI1 PICO: PB8 MOSI SPI data from microcontroller to TFT or SDC |
| DC | GPIO PA13 TFT data/command |
| RES | GPIO PB15 TFT reset |
| CS | SPI1 CS0: PB6 TFT_CS, active low to enable TFT |
| *CS | (NC) SDC_CS, active low to enable SDC |
| MISO | (NC) MISO SPI data from SDC to microcontroller |
| SDA | (NC) I2C data for ADXL345 accelerometer |
| SCL | (NC) I2C clock for ADXL345 accelerometer |
| SDO | (NC) I2C alternate address for ADXL345 accelerometer |
| Backlight + - Light, backlight connected to +3.3 V |
| Pin | Connection |
|---|---|
| VCC | +3.3 V |
| GND | Ground / |
| !SCL | SPI1 SCLK: PB9 |
| !SDA | SPI1 PICO: PB8 MOSI SPI data from microcontroller to TFT or SDC |
| DC | GPIO PA13 TFT data/command |
| RES | GPIO PB15 TFT reset |
| CS | SPI1 CS0: PB6 TFT_CS, active low to enable TFT |
| *CS | (NC) SDC_CS, active low to enable SDC |
| MISO | (NC) MISO SPI data from SDC to microcontroller |
| X | (NC) analog input X-axis from ADXL335 accelerometer |
| Y | (NC) analog input Y-axis from ADXL335 accelerometer |
| Z | (NC) analog input Z-axis from ADXL335 accelerometer |
| Backlight + | Light, backlight connected to +3.3 V |
| signal | Pin | Connection |
|---|---|---|
| LED- | 16 | TFT, to ground |
| LED+ | 15 | TFT, to +3.3 V |
| SD_CS | 14 | SDC, to chip select |
| MOSI | 13 | SDC, to MOSI |
| MISO | 12 | SDC, to MISO |
| SCK | 11 | SDC, to serial clock |
| CS | 10 | TFT, to PB6 SPI1 CS0 |
| SCL | 9 | TFT, to PB9 SPI1 SCLK |
| SDA | 8 | TFT, to PB8 MOSI SPI1 PICO |
| A0 | 7 | TFT, to PA13 Data/Command, high for data, low for command |
| RESET | 6 | TFT, to PB15 reset (GPIO), low to reset |
| NC | 3,4,5 | not connected |
| VCC | 2 | to +3.3 V |
| GND | 1 | to ground |
| signal | Pin | Connection |
|---|---|---|
| LED | 8 | to +3.3 V |
| SCK | 7 | SCLK to PB9 SPI1 SCLK |
| SDA | 6 | MOSI, to PB8 SPI1 PICO |
| A0 | 5 | Data/Command to PA13 (GPIO), high for data, low for command |
| RESET | 4 | to PB15 (GPIO), low to reset |
| CS | 3 | to PB6 SPI1 CS0: |
| Gnd | 2 | to ground |
| VCC | 1 | to +3.3 V |