Added may pad files
This commit is contained in:
		
							
								
								
									
										17
									
								
								boards/may_pad/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								boards/may_pad/README.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
# May Pad
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
A through hole kit using a pro micro footprint and through hole diodes! Can be a 20 key macropad or a numpad!
 | 
			
		||||
 | 
			
		||||
kb.py is designed to work with the Adafruit KB2040  
 | 
			
		||||
 | 
			
		||||
Retailers (USA)  
 | 
			
		||||
[KeyHive](https://keyhive.xyz/shop/may-pad)
 | 
			
		||||
 | 
			
		||||
Extensions enabled by default  
 | 
			
		||||
- [Layers](https://github.com/KMKfw/kmk_firmware/tree/master/docs/layers.md) Need more keys than switches? Use layers.
 | 
			
		||||
- [MediaKeys](https://github.com/KMKfw/kmk_firmware/tree/master/docs/media_keys.md) Control volume and other media functions
 | 
			
		||||
 | 
			
		||||
Common Extensions
 | 
			
		||||
- [Power](https://github.com/KMKfw/kmk_firmware/tree/master/docs/power.md) Powersaving features for battery life
 | 
			
		||||
							
								
								
									
										16
									
								
								boards/may_pad/kb.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								boards/may_pad/kb.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
import board
 | 
			
		||||
 | 
			
		||||
from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
 | 
			
		||||
from kmk.matrix import DiodeOrientation
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class KMKKeyboard(_KMKKeyboard):
 | 
			
		||||
    row_pins = (board.D5, board.D6, board.D7, board.D8, board.D9)
 | 
			
		||||
    col_pins = (
 | 
			
		||||
        board.A1,
 | 
			
		||||
        board.A0,
 | 
			
		||||
        board.SCK,
 | 
			
		||||
        board.MISO,
 | 
			
		||||
    )
 | 
			
		||||
    diode_orientation = DiodeOrientation.COLUMNS
 | 
			
		||||
    i2c = board.I2C
 | 
			
		||||
							
								
								
									
										29
									
								
								boards/may_pad/main.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								boards/may_pad/main.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
			
		||||
from kb import KMKKeyboard
 | 
			
		||||
from kmk.extensions.media_keys import MediaKeys
 | 
			
		||||
from kmk.keys import KC
 | 
			
		||||
from kmk.modules.layers import Layers
 | 
			
		||||
 | 
			
		||||
keyboard = KMKKeyboard()
 | 
			
		||||
 | 
			
		||||
media = MediaKeys()
 | 
			
		||||
layers_ext = Layers()
 | 
			
		||||
 | 
			
		||||
keyboard.extensions = [media]
 | 
			
		||||
keyboard.modules = [layers_ext]
 | 
			
		||||
 | 
			
		||||
# Cleaner key names
 | 
			
		||||
_______ = KC.TRNS
 | 
			
		||||
XXXXXXX = KC.NO
 | 
			
		||||
 | 
			
		||||
keyboard.keymap = [
 | 
			
		||||
    [
 | 
			
		||||
        KC.NLCK, KC.PSLS, KC.PAST, KC.PMNS,
 | 
			
		||||
        KC.P7,   KC.P8,   KC.P9,   _______,
 | 
			
		||||
        KC.P4,   KC.P5,   KC.P6,   KC.PPLS,
 | 
			
		||||
        KC.P1,   KC.P2,   KC.P3,   _______,
 | 
			
		||||
        _______, KC.P0, KC.PDOT,   KC.PENT,
 | 
			
		||||
        ]
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
if __name__ == '__main__':
 | 
			
		||||
    keyboard.go()
 | 
			
		||||
		Reference in New Issue
	
	Block a user