Open tomcheung opened 4 months ago
Add support support for epd2in9b_v4, reference from c source code https://github.com/waveshareteam/e-Paper/blob/master/RaspberryPi_JetsonNano/c/lib/e-Paper/EPD_2in9b_V4.c
Also support for partial display and red color
Here is the testing code with EPS32
Add support support for epd2in9b_v4, reference from c source code https://github.com/waveshareteam/e-Paper/blob/master/RaspberryPi_JetsonNano/c/lib/e-Paper/EPD_2in9b_V4.c
Also support for partial display and red color
Here is the testing code with EPS32
Testing code
```rust // It is necessary to call this function once. Otherwise some patches to the runtime // implemented by esp-idf-sys might not link properly. See https://github.com/esp-rs/esp-idf-template/issues/71 esp_idf_svc::sys::link_patches(); // Bind the log crate to the ESP Logging facilities esp_idf_svc::log::EspLogger::initialize_default(); log::set_max_level(log::LevelFilter::Debug); let peripheral = Peripherals::take().unwrap(); let bus_config = DriverConfig::new(); let config = Config::new().baudrate(10u32.MHz().into()); let sclk: AnyOutputPin = peripheral.pins.gpio13.into(); let sdo: AnyOutputPin = peripheral.pins.gpio14.into(); let cs: AnyOutputPin = peripheral.pins.gpio15.into(); let mut spi = SpiDeviceDriver::new_single( peripheral.spi3, sclk, sdo, Option::