#Problem with setting up repo with Dongle (w/ Display)

1 messages · Page 1 of 1 (latest)

sage sun
#

Hey!

I'm trying to set up a ZMK repo for my 5col Corne with a Dongle (which also has a display) while retaining ZMK Studio support, however I don't seem to grasp some concepts of setting up the repo.

My attempts at setting up the repo: https://github.com/Zoltan-Balazs/zmk-corne
And here is where I got the dongle display from: https://github.com/englmaxi/zmk-dongle-display

My questions/assumptions:

  • Is studio-rpc-usb-uart needed for the central dongle?
  • Why does removing the before-mentioned studio-rpc-usb-uart from the left shield build.yaml cause it to not build anymore? Looking at the logs it seems like the issue is /tmp/zmk-config/zephyr/include/zephyr/device.h:85:41: error: '__device_dts_ord_DT_CHOSEN_zmk_studio_rpc_uart_ORD' undeclared here (not in a function), this seems to suggest that it is needed, but according to the docs, if I were to use a dongle, it should be only used in the dongle and not the left shield
  • I'm assuming my dongle overlay is incorrect, I tried to follow the official guide (https://zmk.dev/docs/development/hardware-integration/dongle), for this I'm getting the error devicetree error: /__w/zmk-corne/zmk-corne/boards/shields/corne_dongle/corne_dongle.overlay:3 (column 1): parse error: undefined node label 'physical_layout', I'm assuming I should't put this line in the overlay file but the dtsi instead (?), what would be the pedantic way of separating this file? (Assuming it is even set up correctly) - It is important to note that even without the dongle_display my left side and central dongle doesn't want to build.
  • While I'm trying to put an I2C OLED Display to the Dongle, I don't seem to understand where the SCK & SDA pins should be wired to the microcontroller (I would like to use a nice!nano v2 for the dongle)

Sorry for the noob-ish questions, I absolutely love what the ZMK Dev team has been able to accomplish! (I'm just being dumb even when RTFM 😅 )

gloomy granite
#

On mobile and don't have time for a detailed answer.

  • yes needed for central dongle
  • set the studio kconfig to n for left. Also set split role central to n.
  • keep the physical layouts exactly the same between central and peripherals, same name and same transform. Check out the physical layouts doc page and the .dtsi file for the original shield.
  • check out the pin control doc page.
gloomy granite
sage sun