#solved - getting nice!view panel working with 2xhc595

1 messages · Page 1 of 1 (latest)

low jungle
#

I try to get a nice!view like panel working with my mlego/m66 rev4 which uses 2xhc595 to scan the columns and one of the promicro cheap nrf52840... schematics is here https://kicanvas.org/?github=https%3A%2F%2Fgithub.com%2Fm-lego%2Fm65 the pcb is ok, also the screen, since I have qmk working on it (see picture). on zmk side I have the matrix working, encoder too but the screen is just noise... the firmware is here https://github.com/alinelena/mlego-zmk/tree/main/config/boards/shields/mlego_m66_rev4 for zmk. any help appreciated.

#

I am building against ```bash

  • board: nice_nano_v2
    shield: mlego_m66_rev4 nice_view ```
#

if that matters

gleaming cave
low jungle
#

but still no luck

#

ok some progress now is perfectly white

#

I could have swear I enabled some widgets

gleaming cave
#

If necessary you can also increase the log buffer size, e.g.: CONFIG_LOG_BUFFER_SIZE=4096

low jungle
#

yes I will add it will be a job for tomorrow... there is this P9 pin

#

that in qmk i need to control to get the screen on

low jungle
#

ok debug time

#

so will be nice to understand how the hell I cna control these

low jungle
#

ok i get something like this

#

not very useful

low jungle
#

here it is a full log

#

seems things do what they are supposed to do

#

but nothing on the screen just perfect blank

low jungle
#

measured the pins and they seem to be setup correctly

#

practically same as in the working qmk

rare nimbus
low jungle
#

yap

#

at least i think so

#

yes d9 p1.06

gleaming cave
low jungle
#

that pin in niveview pcb is always set up to high

low jungle
#

just for reference here is the pcb board #hardware message

#

i will try to shortcut totally the disp pin to see if that is the issue

#

even if I measured it and is high the same way as in qmk

low jungle
#

ok so indeed the jumper is on right position so no dc pin needed is always connected to 3,3V

#

odd is i even got some image

#

so i wonder if there is some deadlocking

#

or some race condition

low jungle
#

the latest version of the code is there

low jungle
#

some progress one key and the sharp screen work as expected

#

so I suspect is having more than one stuff on the spi

gleaming cave
#

that's interesting given this message yesterday #pointing-devices message

low jungle
#

nice... at least I am not alone

#

i think is indeed some race... since I can swear i have seen it working one time

gleaming cave
#

...have to admit I am a bit surprised that QMK would be able to handle two devices on the same SPI bus more gracefully. perhaps there is just some Zephyr configuration we are unaware of

low jungle
#

i think so

#

just for record... after flashing the full firmware after the one key one...

#

works

#

blimey it likes the battery it seems

gleaming cave
#

the display is wired to VCC, right? yes, double checked kicanvas

low jungle
#

yes

#

and is no using a separate disp pin

#

for backlight

#

practically is a niceview circuit behind and same panel

#

now I will need to see if I can rotate it

low jungle
#

seems to work... no idea what was the initial issue... or why flashing onekey made it work

#

solved - getting nice!view panel working with 2xhc595