Skip to content

Yttehs-HDX/CH32-ST7735-Demo

Repository files navigation

CH32-ST7735-Demo

Build test

Demo for ST7735 under CH32V307VCT6 using ch32-hal

Features

let cs = p.PD4;
let (sck, sda) = (p.PB3, p.PB5);
let spi = Spi::new_blocking_txonly(p.SPI3, sck, sda, Default::default());
let blk = p.PA15;
let pwm = SimplePwm::new(
    p.TIM2,
    Some(PwmPin::new_ch1::<1>(blk)),
    None,
    None,
    None,
    Hertz::khz(1),
    CountingMode::default(),
);

Description

This project is build via ch32-rs/ch32-hal-template.

This project is for CH32V307VCT6 only:

Board Display Display size
CH32V307VCT6 ST7735 (8 pins) 144 * 144

Driver the ST7735 to display rust logo (from sajattack/st7735-lcd-rs), with a brightness setting button (user button).

preview

Usage

  1. Install wlink tool.

  2. Connect DuPont line.

On board (for USER button):

PA14 <---> KEY

From ST7735 to board:

ST7735 Board
GND GND
VCC 3V3
SCL PB3
SDA PB5
RES PB4
DC PD3
CS PD4
BLK PA15
  1. Customize config at src/constant.rs for your ST7735.

  2. Run command:

cargo run --release
# or
make run
  1. Press USER to switch brightness.

Discussion

Discussions at ch32-hal.

Special Thanks

License

MIT

About

Demo for ST7735 under CH32V307VCT6 using ch32-hal

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published