Skip to content

Instantly share code, notes, and snippets.

(kicad_pcb
(version 20240108)
(generator "pcbnew")
(generator_version "8.0")
(general
(thickness 1.6)
(legacy_teardrops no)
)
(paper "A4")
(layers
----------- rules.mk -----------
POINTING_DEVICE_ENABLE = yes
POINTING_DEVICE_DRIVER = pimoroni_trackball
PS2_MOUSE_ENABLE = yes
PS2_ENABLE = yes
PS2_DRIVER = vendor
----------- config.h -----------
% make handwired/onekey/rp2040:default:flash
QMK Firmware 0.22.2
Making handwired/onekey/rp2040 with keymap default and target flash
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 8-2019-q3-update) 8.3.1 20190703 (release) [gcc-8-branch revision 273027]
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Size before:
$ make crkbd/rev1:via:flash -e USER_NAME=idank -e POINTING_DEVICE=trackpoint -e CONVERT_TO=rp2040_ce
QMK Firmware 0.21.3
Making crkbd/rev1 with keymap via and target flash
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 8-2019-q3-update) 8.3.1 20190703 (release) [gcc-8-branch revision 273027]
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Size before:
// ---------- busywait: works
// config.h
#define PS2_MOUSE_USE_REMOTE_MODE
#define PS2_CLOCK_PIN D3
#define PS2_DATA_PIN B4
// rules.mk
PS2_MOUSE_ENABLE = yes
PS2_ENABLE = yes
diff --git a/keyboards/handwired/trackpoint/config.h b/keyboards/handwired/trackpoint/config.h
index e42a53eeb8..e20b2da26d 100644
--- a/keyboards/handwired/trackpoint/config.h
+++ b/keyboards/handwired/trackpoint/config.h
@@ -1,9 +1,26 @@
#pragma once
+#define PS2_CLOCK_PIN D2
+#define PS2_DATA_PIN D3
{
"keyboard_name": "Ferris sweep",
"manufacturer": "DPB",
"usb": {
"vid": "0xC2AB",
"pid": "0x3939",
"device_version": "0.0.1"
},
"development_board": "elite_c",
"features": {
@idank
idank / qmk.diff
Last active November 9, 2022 08:11
changes in QMK to support pimoroni trackball
diff --git a/keyboards/crkbd/keymaps/via/config.h b/keyboards/crkbd/keymaps/via/config.h
index fc8e7c4781..81e587d662 100644
--- a/keyboards/crkbd/keymaps/via/config.h
+++ b/keyboards/crkbd/keymaps/via/config.h
@@ -20,8 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Select hand configuration */
-#define MASTER_LEFT
-// #define MASTER_RIGHT
$ git diff
diff --git a/keyboards/crkbd/keymaps/default/config.h b/keyboards/crkbd/keymaps/default/config.h
index 8f4d73ca22..5bd358e036 100644
--- a/keyboards/crkbd/keymaps/default/config.h
+++ b/keyboards/crkbd/keymaps/default/config.h
@@ -48,4 +48,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGBLIGHT_VAL_STEP 17
#endif
+#ifdef PS2_USE_BUSYWAIT
# encoding: utf-8
require 'gcloud'
require 'faraday'
module Faraday
class Adapter
class NetHttp < Faraday::Adapter
def ssl_verify_mode(ssl)
OpenSSL::SSL::VERIFY_NONE
end