-
Notifications
You must be signed in to change notification settings - Fork 4
WK2168
Bandit-17 edited this page Aug 26, 2024
·
2 revisions
To be able to have 8 uarts on the PvbrainV2 card 2 WK2168 cards are necessary.
It communicates via I2C.
-sda: GPIO41
-scl: GPIO40
or via SPI
-
mosi: GPIO6
-
miso: GPIO41
-
clk: GPIO40
Its configuration file is located in the base folder.
- For an I2C configuration, you will need to move the DIP SWITCH "1" and "2" according to the desired address.
in the "base" folder you will have to uncomment "device_wk2168_i2c: !include device_wk2168_i2c.yaml" and comment "device_wk2168_spi: !include device_wk2168_spi.yaml" and leave the dip switch "3" on 0
- For an SPI configuration, you will need to move DIP SWITCH "1" and "2" to 0 and put DIP SWITCH "3" to 1.
you will also need to do 2 soldering on the back of the wk2168 card.
:-----------------------: |
to end up in the "base" folder you will have to comment out "device_wk2168_i2c: !include device_wk2168_i2c.yaml" and uncomment "device_wk2168_spi: !include device_wk2168_spi.yaml"
https://github.com/SeByDocKy/pvbrain2/blob/main/pictures/wk2168_back_solder.png