Skip to main content
RKTK API Docs RKTK Home Repo

rktk_drivers_rp/
display.rs

1pub mod ssd1306 {
2    use embassy_rp::i2c::Config;
3
4    pub fn recommended_i2c_config() -> Config {
5        let mut i2c_config = Config::default();
6        i2c_config.frequency = 400_000;
7        i2c_config
8    }
9}
10
11pub mod st7789 {
12    use embassy_rp::spi::Config;
13
14    pub fn recommended_spi_config() -> Config {
15        let mut spi_config = Config::default();
16        spi_config.frequency = 8_000_000;
17        spi_config
18    }
19}