Skip to content

ED060KD1(kindle paperwhite 7th-gen eink display) with esp32-s2

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

yuiiio/esp32-s2-eink

Repository files navigation

for Debug

wr_mask_gpio_out, set_bit_gpio_out, clr_bit_gpio_out, get_gpio_in

esp32s2 specific instructions disassemble needs xtensa-esp32s2-elf-clang-objdump

espup install --toolchain-version 1.79.0.0 -e (# -e for --extended-llvm)

~/.rustup/toolchains/esp/xtensa-esp32-elf-clang/esp-17.0.1_20240419/esp-clang/bin/xtensa-esp32s2-elf-clang-objdump

PSRAM

PSRAM fails to init when using espflash ver 1.7.0 :(

but espflash latest 3.0.1 fails connect to esp32s2 other reason... :(

espflash @2.1.0 works success connect and works psram correct :)

[email protected] works with --before no-reset --no-stub

SdCard (embedded-sdmmc-rs)

supports MBR FAT32 and need [W95 FAT32] type(0x0c)

can use convert-to-eink-image.sh to convert image

can check binary tif by

fn main() {
    let bytes = include_bytes!("output.tif");
    /*
    println!("{:?}", bytes);
    println!("{}", bytes.len());
    */
    let image_size = 1448*1072*4/8;
    //println!("image(w*h*4bit) is {} bytes", image_size);
    let idf_pointer: u32 =
        ((bytes[7] as u32) << 24) +
        ((bytes[6] as u32) << 16) +
        ((bytes[5] as u32) << 8)  +
        ((bytes[4] as u32) << 0);
    //println!("idf pointer is {}", idf_pointer);
    // 8 bytes to idf_pointer is image data
    //println!("image size is {}", idf_pointer - 8);

    let image_array = &bytes[8..idf_pointer as usize];
    assert_eq!(image_array.len(), image_size);
    println!("image array\n {:?}", image_array);
    println!("image_array size: {}", image_array.len());
}

About

ED060KD1(kindle paperwhite 7th-gen eink display) with esp32-s2

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published