Skip to content

Commit

Permalink
Some tweaks:
Browse files Browse the repository at this point in the history
* Adjust key map
* Remap trackpad pins
  • Loading branch information
deividaspetraitis committed Mar 2, 2024
1 parent 2c03483 commit bb17f7b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
8 changes: 4 additions & 4 deletions config/boards/shields/think_corne/think_corne.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@ nice_view_spi: &spi0 {
// On the nice!nano documentation these are green DX pins:
// https://nicekeyboards.com/docs/nice-nano/pinout-schematic
//
#define MOUSE_PS2_PIN_SCL_PRO_MICRO <&pro_micro 1 GPIO_ACTIVE_HIGH>
#define MOUSE_PS2_PIN_SDA_PRO_MICRO <&pro_micro 0 GPIO_ACTIVE_HIGH>
#define MOUSE_PS2_PIN_SCL_PRO_MICRO <&pro_micro 8 GPIO_ACTIVE_HIGH>
#define MOUSE_PS2_PIN_SDA_PRO_MICRO <&pro_micro 9 GPIO_ACTIVE_HIGH>


// Uncomment and configure this pin if you have an extra free pin and want the
// controller to perform the Power-On-Reset sequence, which many trackpoints
// require, instead of using a trackpoint reset circuit.
//
// It's ok to use a low-frequency pin for this.
#define MOUSE_PS2_PIN_RST_PRO_MICRO <&pro_micro 9 GPIO_ACTIVE_HIGH>
#define MOUSE_PS2_PIN_RST_PRO_MICRO <&pro_micro 10 GPIO_ACTIVE_HIGH>


// Now configure the same SDA pin using the pinctrl notation.
Expand All @@ -131,7 +131,7 @@ nice_view_spi: &spi0 {
//
// We don't define the SCL pin, because UART uses a baud rate instead of
// a clock pin.
#define MOUSE_PS2_PIN_SDA_PINCTRL <NRF_PSEL(UART_RX, 0, 8)>
#define MOUSE_PS2_PIN_SDA_PINCTRL <NRF_PSEL(UART_RX, 1, 6)>


// In UART two different pins are used for receiving and transmitting, but PS/2
Expand Down
12 changes: 8 additions & 4 deletions config/think_corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
#include "includes/mouse_tp.dtsi"
#endif

&mt {
tapping-term-ms = <150>;
};

/ {
keymap {
compatible = "zmk,keymap";
Expand All @@ -52,9 +56,9 @@
// | SHFT | | | | | | | | | | | | |
// | GUI | | SPC | | ENT | | ALT |
bindings = <
&kp N7 &kp N5 &kp N3 &kp N1 &kp N9 &kp N0 &kp N2 &kp N4 &kp N6 &kp N8 &kp RIGHT &kp BSPC
&trans &trans &trans &msc LCLK &msc RCLK &trans &trans &kp LEFT &trans &trans &trans &trans
&trans &trans &trans &kp DOWN &kp UP &trans &trans &trans &trans &trans &kp KP_MINUS &trans
&kp N7 &kp N5 &kp N3 &kp N1 &kp N9 &kp N0 &kp N2 &kp N4 &kp N6 &kp N8 &kp RIGHT &kp BSPC
&trans &trans &trans &mkp LCLK &mkp RCLK &trans &trans &kp LEFT &trans &trans &trans &trans
&trans &trans &trans &kp DOWN &kp UP &trans &trans &trans &trans &trans &kp MINUS &trans
&trans &lt 1 ESC &kp SPACE &kp RET &mo 2 &trans
>;
};
Expand All @@ -67,7 +71,7 @@
// | GUI | | SPC | | ENT | | ALT |
bindings = <
&kp EXCL &kp AT &kp HASH &kp AMPS &trans &trans &kp EQUAL &kp ASTRK &trans &kp PLUS &kp DLLR &trans
&trans &trans &kp RBKT &kp LBKT &trans &trans &trans &kp CARET &kp RSHFT &trans &trans &trans
&trans &trans &trans &kp RBKT &kp LBKT &trans &trans &kp CARET &kp RSHFT &trans &trans &trans
&trans &trans &trans &trans &trans &trans &kp UNDER &kp PLUS &kp LBRC &kp RBRC &kp PIPE &kp TILDE
&trans &lt 1 ESC &kp SPACE &kp RET &mo 2 &trans
>;
Expand Down

0 comments on commit bb17f7b

Please sign in to comment.