Hello I am new to the zmk and just trying to understand the pin layout of a pillbug. I have read some articles that say its the same as the blackpill but maybe I'm not fully understanding the pins and what they do, I read that you refer to them with P0.1 (PX.Y) and other just by the pin number. Sorry if this has been asked just trying to understand how these shields work so i can build my keymouse keyboard.
#Understanding Pins for PillBug
1 messages · Page 1 of 1 (latest)
&blackpill 2 with the 2 being the blue CPU PIN number
Thank you genteure for the reply. ok, that make sense. What about if you are using a pmw3610 sensor trackball assuming you would do something like this. just do not know how those relate to the pins.
I can't find a pinout doc/graph for PillBug either, but you can find the pin mapping from the blackpill connector to nrf52840 native pins here https://github.com/zmkfirmware/zmk/blob/main/app/boards/arm/pillbug/blackpill_pins.dtsi
Thanks, Genteure for the Info, I have one more question. Using SCK I would use pin 15, pin Name PA5 and Board Name A5 -- Using MOSI I would use pin 17, Pin Name PA7 and Board Name A7 -- if I am using MISO I would use pin 16, Pin Name PA6 and Board Name A6.
So looking at the link below .....
, <15 0 &gpio1 8 0> /* PA5 SCK*/
, <17 0 &gpio0 11 0> /* PA7 MOSI*/
, <16 0 &gpio0 26 0> /* PA6 MISO*/
would it be writen like below. Thanks again for all your help.
group1 {
psel = <NRF_PSEL(SPIM_SCK, 1,8)>,
psel = <NRF_PSEL(SPIM_MOSI, 0,11)>,
psel = <NRF_PSEL(SPIM_MISO, 0,26)>;
};
I think it would be written like this if using pin15 for SCK, pin17 for MOSI and pin16 for MISO. Sorry if I'm asking dumb questions just trying to grasp how the board is wired.
Am I on the right track or totally off?