/*! * @defgroup ST7735 * @brief ST7735 LCD
Adafruit ST7735R pins
Pin Connection Description
10+3.3Backlight
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 PA13Data/Command(GPIO), high for data, low for command
3 PB15RESET, low to reset, (GPIO)
2 +3.3VCC
1 Gnd ground
wide.hk ST7735R with ADXL345 accelerometer pins
PinConnection
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
wide.hk ST7735R with ADXL335 accelerometer pins
PinConnection
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
HiLetgo ST7735 TFT and SDC pins
signalPinConnection
LED- 16TFT, to ground
LED+ 15TFT, to +3.3 V
SD_CS 14SDC, to chip select
MOSI 13SDC, to MOSI
MISO 12SDC, to MISO
SCK 11SDC, to serial clock
CS 10TFT, to PB6 SPI1 CS0
SCL 9TFT, to PB9 SPI1 SCLK
SDA 8TFT, to PB8 MOSI SPI1 PICO
A0 7TFT, to PA13 Data/Command, high for data, low for command
RESET 6TFT, to PB15 reset (GPIO), low to reset
NC 3,4,5not connected
VCC 2to +3.3 V
GND 1to ground
Tyenaza Tyenazaqhf72mi9s3 pins
signalPinConnection
LED 8 to +3.3 V
SCK 7SCLK to PB9 SPI1 SCLK
SDA 6MOSI, to PB8 SPI1 PICO
A0 5Data/Command to PA13 (GPIO), high for data, low for command
RESET 4to PB15 (GPIO), low to reset
CS 3to PB6 SPI1 CS0:
Gnd 2to ground
VCC 1to +3.3 V
* @{*/ /** * @file Arabic.h * @brief Arabic output to LCD * @details Arabic character/string output to ST7735R display
* @version ECE319K v1.0 * @author Amina Meddad and Jonathan Valvano * @copyright Copyright 2024 by Jonathan W. Valvano, valvano@mail.utexas.edu, * @warning AS-IS * @note For more information see http://users.ece.utexas.edu/~valvano/ * @date August 14, 2024
Adafruit ST7735R pins
Pin Connection Description
10+3.3Backlight
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 PA13Data/Command(GPIO), high for data, low for command
3 PB15RESET, low to reset, (GPIO)
2 +3.3VCC
1 Gnd ground
wide.hk ST7735R with ADXL345 accelerometer pins
PinConnection
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
wide.hk ST7735R with ADXL335 accelerometer pins
PinConnection
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
HiLetgo ST7735 TFT and SDC pins
signalPinConnection
LED- 16TFT, to ground
LED+ 15TFT, to +3.3 V
SD_CS 14SDC, to chip select
MOSI 13SDC, to MOSI
MISO 12SDC, to MISO
SCK 11SDC, to serial clock
CS 10TFT, to PB6 SPI1 CS0
SCL 9TFT, to PB9 SPI1 SCLK
SDA 8TFT, to PB8 MOSI SPI1 PICO
A0 7TFT, to PA13 Data/Command, high for data, low for command
RESET 6TFT, to PB15 reset (GPIO), low to reset
NC 3,4,5not connected
VCC 2to +3.3 V
GND 1to ground
Tyenaza Tyenazaqhf72mi9s3 pins
signalPinConnection
LED 8 to +3.3 V
SCK 7SCLK to PB9 SPI1 SCLK
SDA 6MOSI, to PB8 SPI1 PICO
A0 5Data/Command to PA13 (GPIO), high for data, low for command
RESET 4to PB15 (GPIO), low to reset
CS 3to PB6 SPI1 CS0:
Gnd 2to ground
VCC 1to +3.3 V

******************************************************************************/ #ifndef _ARABIC_ #define _ARABIC_ #include /** * \brief Arabic character set */ typedef enum {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_t; /** * Move the cursor to the desired X- and Y-position. The * next character will be printed here. X=0 is the leftmost * column. Y=0 is the top row. * * @param none * @param newX new X-position of the cursor (0<=newX<=7) * @param newY new Y-position of the cursor (0<=newY<=9) * @return none * @brief Move Arabic cursor */ void Arabic_SetCursor(uint32_t newX, uint32_t newY); /** * Output one Arabic character to the LCD * Position determined by Arabic_SetCursor command * Color set by ST7735_SetTextColor * @param ch 8-bit Arabic character * @return none * @brief Output an Arabic character */ void Arabic_OutChar(Arabic_t ch); /** * Output an Arabic string to the LCD * Position determined by Arabic_SetCursor command * Color set by ST7735_SetTextColor. * The string will automatically wrap. * @param ptr pointer to null-terminated Arabic string * @return none * @brief Output an Arabic string */ void Arabic_OutString(Arabic_t *ptr); #endif /** @}*/