aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build_keyboard.mk1
-rw-r--r--quantum/config_common.h4
-rw-r--r--readme.md39
3 files changed, 41 insertions, 3 deletions
diff --git a/build_keyboard.mk b/build_keyboard.mk
index 61aebf393..055ce632a 100644
--- a/build_keyboard.mk
+++ b/build_keyboard.mk
@@ -199,6 +199,7 @@ endif
199VPATH += $(KEYBOARD_PATH) 199VPATH += $(KEYBOARD_PATH)
200VPATH += $(COMMON_VPATH) 200VPATH += $(COMMON_VPATH)
201 201
202include $(TMK_PATH)/protocol.mk
202 203
203include $(TMK_PATH)/common.mk 204include $(TMK_PATH)/common.mk
204SRC += $(TMK_COMMON_SRC) 205SRC += $(TMK_COMMON_SRC)
diff --git a/quantum/config_common.h b/quantum/config_common.h
index 8ed5f4a10..6b525fe1c 100644
--- a/quantum/config_common.h
+++ b/quantum/config_common.h
@@ -76,10 +76,9 @@
76 } while(0) 76 } while(0)
77# else 77# else
78# error "USART configuration is needed." 78# error "USART configuration is needed."
79# endif
79#endif 80#endif
80 81
81// I'm fairly sure these aren't needed, but oh well - Jack
82
83/* 82/*
84 * PS/2 Interrupt configuration 83 * PS/2 Interrupt configuration
85 */ 84 */
@@ -125,4 +124,3 @@
125 124
126#endif 125#endif
127 126
128#endif
diff --git a/readme.md b/readme.md
index 8615b48d5..0157b9072 100644
--- a/readme.md
+++ b/readme.md
@@ -1157,6 +1157,45 @@ The firmware supports 5 different light effects, and the color (hue, saturation,
1157 1157
1158Please note the USB port can only supply a limited amount of power to the keyboard (500mA by standard, however, modern computer and most usb hubs can provide 700+mA.). According to the data of NeoPixel from Adafruit, 30 WS2812 LEDs require a 5V 1A power supply, LEDs used in this mod should not more than 20. 1158Please note the USB port can only supply a limited amount of power to the keyboard (500mA by standard, however, modern computer and most usb hubs can provide 700+mA.). According to the data of NeoPixel from Adafruit, 30 WS2812 LEDs require a 5V 1A power supply, LEDs used in this mod should not more than 20.
1159 1159
1160## PS/2 Mouse Support
1161
1162Its possible to hook up a PS/2 mouse (for example touchpads or trackpoints) to your keyboard as a composite device.
1163In order to do this you must first enable the option in your Makefile.
1164
1165 PS2_MOUSE_ENABLE = yes
1166
1167Then, decide whether to use interrupts (better if your microcontroller supports them) or busywait, and enable the relevant option.
1168
1169 PS2_USE_INT = yes
1170 // PS2_USE_BUSYWAIT = yes
1171
1172If you're using a teensy and have hooked up the clock on your PS/2 device to D1 and the data to D0, you're all set.
1173Otherwise, you will need to update the following defines in your `config.h`:
1174
1175 #define PS2_CLOCK_PORT PORTD
1176 #define PS2_CLOCK_PIN PIND
1177 #define PS2_CLOCK_DDR DDRD
1178 #define PS2_CLOCK_BIT 1
1179
1180 #define PS2_DATA_PORT PORTD
1181 #define PS2_DATA_PIN PIND
1182 #define PS2_DATA_DDR DDRD
1183 #define PS2_DATA_BIT 0
1184
1185And with `PS2_USE_INT` also define these macros:
1186
1187 #define PS2_INT_INIT() do { \
1188 EICRA |= ((1<<ISC11) | \
1189 (0<<ISC10)); \
1190 } while (0)
1191 #define PS2_INT_ON() do { \
1192 EIMSK |= (1<<INT1); \
1193 } while (0)
1194 #define PS2_INT_OFF() do { \
1195 EIMSK &= ~(1<<INT1); \
1196 } while (0)
1197 #define PS2_INT_VECT INT1_vect
1198
1160## Safety Considerations 1199## Safety Considerations
1161 1200
1162You probably don't want to "brick" your keyboard, making it impossible 1201You probably don't want to "brick" your keyboard, making it impossible