@Matuki said in Re: Matuki's MMM-IT8951 module for WaveShare e-ink displays:
Can you try to run Magicmirror when logged as root?
Hey, thanks for the reply! Yes, I’m MagicMirror as root.
If you already tried that, are you sure to have the correct pins configured (no difference between configuration of program test and the module? Can you share the config of the module?
Here’s my module config:
{
module: "MMM-IT8951",
config: {
updateInterval: 60 * 1000, // 1 minute // Full refresh screen
bufferDelay: 1000, // 1 second // Delay before taking updated items
defaultTo4levels: false,
driverParam: { MAX_BUFFER_SIZE: 4096, PINS: {RST: 11, CS: 24, DC: 22, BUSY: 18}, BPP: 4, ALIGN4BYTES: false, SWAP_BUFFER_ENDIANESS: true }, // see https://github.com/gaweee/node-it8951#functions-calls
mock: false,
},
},
I also checked that these are the correct pins (according to this ). I’ve also tried both 3-line SPI and 4-line SPI positions on the HAT board. The epd demo only works with the 4-line setting. I get the same result for both positions when running MM - all zeros:
[20.02.2024 14:50.34.378] [INFO] Checking git for module: MMM-IT8951
[20.02.2024 14:50.34.677] [LOG] width = 0
[20.02.2024 14:50.34.677] [LOG] height = 0
[20.02.2024 14:50.34.678] [LOG] img_addr = 0
[20.02.2024 14:50.34.679] [LOG] firmware =
[20.02.2024 14:50.34.679] [LOG] lut =
[20.02.2024 14:50.34.784] [LOG] VCOM = 0v
[20.02.2024 14:50.34.788] [LOG] IT8951 initialized (0x0)
[20.02.2024 14:50.34.815] [LOG] Full refresh eink
[20.02.2024 14:50.34.862] [INFO] Checking git for module: MagicMirror
[20.02.2024 14:50.34.893] [ERROR] Whoops! There was an uncaught exception...
[20.02.2024 14:50.34.902] [ERROR] Error: 'width' in 'clip' must be positive.
I’ve also tried with and without the PINS and various permutations of parameters with no difference.
Running “sudo npm run server” without the HAT attached just hangs, so it seems to be communicating with the SPI device.
I’ve got a Pi Zero 2 W - I’m going to try with that instead of the Pi 4 in case it’s a hardware incompatibility.