-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using on esp32 with embassy hangs on Epd2in9bc::new
#220
Comments
Potentially related issues, none of which have an answer:
|
Also, a pin mapping:
Same as what I've used to run GxEPD2 example |
For info, here are the crate versions I'm using: esp-backtrace = { version = "0.14.2", features = [
"esp32",
"exception-handler",
"panic-handler",
"println",
]}
esp-hal = { version = "0.22.0", features = [
"esp32",
] }
esp-println = { version = "0.12.0", features = ["esp32", "log"] }
log = { version = "0.4.21" }
esp-alloc = { version = "0.5.0" }
embedded-io = "0.6.1"
embedded-io-async = "0.6.1"
embassy-net = { version = "0.4.0", features = [ "tcp", "udp", "dhcpv4", "medium-ethernet"] }
esp-wifi = { version = "0.11.0", default-features=false, features = [
"esp32",
"utils",
"wifi",
"esp-alloc",
"log",
] }
heapless = { version = "0.8.0", default-features = false }
smoltcp = { version = "0.11.0", default-features = false, features = [
"medium-ethernet",
"proto-dhcpv4",
"proto-igmp",
"proto-ipv4",
"socket-dhcpv4",
"socket-icmp",
"socket-raw",
"socket-tcp",
"socket-udp",
] }
embassy-executor = { version = "0.6.0", features = [
"task-arena-size-12288",
] }
embassy-time = { version = "0.3.1", features = ["generic-queue-8"] }
esp-hal-embassy = { version = "0.5.0", features = ["esp32"] }
static_cell = { version = "2.1.0", features = ["nightly"] }
critical-section = "1.2.0"
epd-waveshare = "0.6.0"
embedded-graphics = "0.8.1"
embassy-embedded-hal = "0.2.0"
embassy-sync = "0.6.1"
embedded-hal-bus = "0.2.0" |
I've checked some things and I think this library has a problem with I've used https://github.com/GnomedDev/epaper-simplyplural-badge/tree/0440c798289a3b36dcfb42f4938d9fc3a9111da9 as a base project to verify whether the project that was linked to me would work if I tweak it to my hardware. I've done some incremental changes: first changing gpio pins, then adding logging, and at the end changing from |
Also, switching to Epd2in9 goes past |
Hello, I am trying to drive an epaper display (2.9inch b/w/r from weact, analogous to waveshare module, working with GxEPD2) using this library, running on esp32 using embassy. The lack of examples really makes it difficult, but I'm trying to figure it out.
One problem is that the library doesn't allow to just use the
esp_hal::spi::master::Spi
and instead one has to "wrap" it throughembassy_embedded_hal::blocking::spi::SpiDevice
, which itself requires a lot of setup.So, here's my code so far, based on a template from
esp-generate
:With the debug logs in place, the point in the program where it stops is after
info!("Initializing epd");
.Did I do something obviously wrong in my code? What can I do to diagnose the issue further to find out why it's hung?
The text was updated successfully, but these errors were encountered: