-
Notifications
You must be signed in to change notification settings - Fork 49
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
[WIP] Adding Waveshare 12.48 #70
base: main
Are you sure you want to change the base?
Conversation
@clintandrewhall thanks for submitting this PR! I'll find some time to take a close look over the next couple of days. I appreciate the thorough investigation into the different connectivity options. Too bad |
@samsonmking Yeah, unfortunately. You have to It occurred to me that, with a few changes, this could be maintained separately and "registered" with If someone has some knowledge of C and how to debug the infinite loops for this device, I'm happy to test and report back! |
@clintandrewhall if you're up for it, I've got a couple thoughts about how we might track down with what's going on with Few things to try:
I was reading up on how the |
@samsonmking Yep, here you go:
Let me know what you'd like to do next! |
@clintandrewhall have you happend to try building and running the provided c examples from Waveshare? I noticed they do some things in a slightly different order... for instance, clearing the display before displaying a new image. I think you'd:
That'll help us isolate whether it's a problem with the Waveshare code itself, a driver / permissions issue, or an issue with the epaper.js implementation. It looks like there is an updated fork of WiringPi. If we can't get |
@samsonmking I turned set The output is:
with |
Summary
This PR adds the Waveshare 12.48 display to epaper.js.
Caveats and Discussion
Dependency on BCM2835
This implementation works with the `` pin interface, but
USE_DEV_LIB
causes an infinite loop after `M1 Busy Free`. I haven't been able to get the pins to respond, and it doesn't appear like I'm the only one:So for my testing, I used both
wiringPi
andBCM2835
... since BCM2835 isn't deprecated, I figured that was the best way to go in the short-term.Swapped Dimensions
For a reason I can't yet find,
HEIGHT
andWIDTH
have to be swapped to a portrait aspect ratio. If they aren't you get things like overflowing red/black buffers, or flat-out gibberish.Any advice from @samsonmking et al is, of course, appreciated!