Working with pillbug v0.2 and OBE shield.

This commit is contained in:
Kyle McCreery 2022-09-02 18:11:50 -04:00
parent b83ecd8ed1
commit 6459c9eb21
5 changed files with 31 additions and 30 deletions

View file

@ -3,5 +3,5 @@
config BOARD_ENABLE_DCDC
bool "Enable DCDC mode"
select SOC_DCDC_NRF52X
default n
default y
depends on (BOARD_PILLBUG)

View file

@ -13,34 +13,34 @@
gpio-map
= <2 0 &gpio0 9 0> /* PC13 */
, <3 0 &gpio0 10 0> /* PC14 */
, <4 0 &gpio1 5 0> /* PC15 */
, <10 0 &gpio1 7 0> /* PA0 */
, <11 0 &gpio1 10 0> /* PA1 */
, <12 0 &gpio1 13 0> /* PA2 */
, <13 0 &gpio1 15 0> /* PA3 */
, <14 0 &gpio0 2 0> /* PA4 */
, <15 0 &gpio0 29 0> /* PA5 */
, <16 0 &gpio0 31 0> /* PA6 */
, <17 0 &gpio1 11 0> /* PA7 */
, <18 0 &gpio1 14 0> /* PB0 */
, <19 0 &gpio0 30 0> /* PB1 */
, <20 0 &gpio0 5 0> /* PB2 */
, <21 0 &gpio1 8 0> /* PB10 */
, <25 0 &gpio1 9 0> /* PB12 */
, <26 0 &gpio0 12 0> /* PB13 */
, <27 0 &gpio0 25 0> /* PB14 */
, <28 0 &gpio1 1 0> /* PB15 */
, <29 0 &gpio1 2 0> /* PA8 */
, <4 0 &gpio1 6 0> /* PC15 */
, <10 0 &gpio0 25 0> /* PA0 */
, <11 0 &gpio0 5 0> /* PA1 */
, <12 0 &gpio1 15 0> /* PA2 */
, <13 0 &gpio0 2 0> /* PA3 */
, <14 0 &gpio1 11 0> /* PA4 */
, <15 0 &gpio1 8 0> /* PA5 */
, <16 0 &gpio0 26 0> /* PA6 */
, <17 0 &gpio0 11 0> /* PA7 */
, <18 0 &gpio1 9 0> /* PB0 */
, <19 0 &gpio1 14 0> /* PB1 */
, <20 0 &gpio0 3 0> /* PB2 */
, <21 0 &gpio0 31 0> /* PB10 */
, <25 0 &gpio0 12 0> /* PB12 */
, <26 0 &gpio0 19 0> /* PB13 */
, <27 0 &gpio1 1 0> /* PB14 */
, <28 0 &gpio0 29 0> /* PB15 */
, <29 0 &gpio1 13 0> /* PA8 */
, <30 0 &gpio0 6 0> /* PA9 */
, <31 0 &gpio0 8 0> /* PA10 */
, <38 0 &gpio0 13 0> /* PA15 */
, <39 0 &gpio0 15 0> /* PB3 */
, <40 0 &gpio0 17 0> /* PB4 */
, <41 0 &gpio0 22 0> /* PB5 */
, <42 0 &gpio0 24 0> /* PB6 */
, <43 0 &gpio1 0 0> /* PB7 */
, <45 0 &gpio1 4 0> /* PB8 */
, <46 0 &gpio1 6 0> /* PB9 */
, <38 0 &gpio1 0 0> /* PA15 */
, <39 0 &gpio1 10 0> /* PB3 */
, <40 0 &gpio1 2 0> /* PB4 */
, <41 0 &gpio1 4 0> /* PB5 */
, <42 0 &gpio0 13 0> /* PB6 */
, <43 0 &gpio0 15 0> /* PB7 */
, <45 0 &gpio0 17 0> /* PB8 */
, <46 0 &gpio0 24 0> /* PB9 */
;
};
};

View file

@ -15,7 +15,7 @@
ext-power {
compatible = "zmk,ext-power-generic";
label = "EXT_POWER";
control-gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
control-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
init-delay-ms = <50>;
};

View file

@ -9,7 +9,7 @@
&spi1 {
compatible = "nordic,nrf-spim";
status = "okay";
mosi-pin = <39>;
mosi-pin = <25>;
// Unused pins, needed for SPI definition, but not used by the ws2812 driver itself.
sck-pin = <27>;
miso-pin = <28>;

View file

@ -8,6 +8,7 @@
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/rgb.h>
#include <dt-bindings/zmk/ext_power.h>
#define TIMEOUT 300
@ -70,7 +71,7 @@
&bootloader &trans &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &trans &trans &trans &trans &trans &trans &trans &trans &trans
&bt BT_NXT &kp CAPS &kp KP_NUM &kp SLCK &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &kp HOME &trans &kp END
&trans &trans &rgb_ug RGB_BRD &rgb_ug RGB_EFR &ext_power EP_TOG &rgb_ug RGB_EFF &rgb_ug RGB_BRI &trans &kp HOME &trans &kp END
>;
sensor-bindings = <&inc_dec_kp PG_UP PG_DN>;