3442 views|18 replies

1w

Posts

25

Resources
The OP
 

Beautiful Pico Quad Keyboard [Copy link]

 
 

This compact and beautiful keyboard is designed to speed up your most important tasks!


It can be built using some hand-wired mechanical push switches (no PCB or diode matrix required) and controlled from a Raspberry Pi Pico RP2040 running CircuitPython.

游客,如果您要查看本帖隐藏内容请回复

Latest reply

It should be painted, otherwise it wouldn't be so smooth. Maybe the printing material is higher quality.   Details Published on 2023-11-27 11:22
 
 

1w

Posts

25

Resources
2
 
 
 
 

1w

Posts

25

Resources
3
 

Reference code

# SPDX-FileCopyrightText: 2021 john park for Adafruit Industries
# SPDX-License-Identifier: MIT
# Pico Four Key USB HID Keypad

import board
from digitalio import DigitalInOut, Pull
from adafruit_debouncer import Debouncer
import usb_hid
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode

kpd = Keyboard(usb_hid.devices)

# define buttons
num_keys = 4
pins = (
    board.GP0,
    board.GP1,
    board.GP2,
    board.GP3
)

keys = []
for pin in pins:
    tmp_pin = DigitalInOut(pin)
    tmp_pin.pull = Pull.UP
    keys.append(Debouncer(tmp_pin))

keymap = {
    (0): ("Select all", [Keycode.GUI, Keycode.A]),
    (1): ("Cut", [Keycode.GUI, Keycode.X]),
    (2): ("Copy", [Keycode.GUI, Keycode.C]),
    (3): ("Paste", [Keycode.GUI, Keycode.V])
}

print("\nWelcome to keypad")
print("keymap:")
for k in range(num_keys):
    print("\t", (keymap[k][0]))


while True:
    for i in range(num_keys):
        keys[i].update()
        if keys[i].fell:
            print(keymap[i][0])
            kpd.send(*keymap[i][1])

 
 
 

1942

Posts

2

Resources
4
 

A must-have for programmers: Ctrl, C, V, backspace, haha!

Comments

classic  Details Published on 2021-10-15 10:18
 
 
 

1412

Posts

3

Resources
5
 

There has always been a question: where did you get such a beautiful box?

Comments

Available, not cheap https://www.adafruit.com/product/5073  Details Published on 2021-10-15 10:18
Personal signature

没有什么不可以,我就是我,不一样的烟火! 

 
 
 

1582

Posts

0

Resources
6
 

Interesting, what can it be used for?

Comments

You can program and define key functions by yourself. For example, you can make game key combinations.  Details Published on 2021-10-15 10:19
 
 
 

1w

Posts

25

Resources
7
 
w494143467 Published on 2021-10-15 09:04 Programmers must have, Ctrl, C, V, backspace, haha!

classic

 
 
 

1w

Posts

25

Resources
8
 
annysky2012 posted on 2021-10-15 09:13 I have always had a question: where did you get such a beautiful box?

Available, not cheap

https://www.adafruit.com/product/5073

Comments

I thought you 3D printed it yourself.  Details Published on 2021-10-15 15:34
 
 
 

1w

Posts

25

Resources
9
 
se7ens posted on 2021-10-15 09:49 It's quite interesting, what can it be used for

You can program and define key functions by yourself. For example, you can make game combination keys

 
 
 

1412

Posts

3

Resources
10
 
dcexpert posted on 2021-10-15 10:18 It is for sale, not cheap https://www.adafruit.com/product/5073

I thought you 3D printed it yourself.

Personal signature

没有什么不可以,我就是我,不一样的烟火! 

 
 
 

303

Posts

5

Resources
11
 

Thanks for sharing!

 
 
 

111

Posts

0

Resources
12
 

The box is the biggest challenge!!!

Comments

This is true for electronic engineers, circuit boards are easier.  Details Published on 2022-4-5 16:50
 
 
 

1w

Posts

25

Resources
13
 
serialworld posted on 2022-4-5 16:35 The box is the biggest difficulty! ! !

This is true for electronic engineers, circuit boards are easier.

 
 
 

1

Posts

0

Resources
14
 
666666
 
 
 

1463

Posts

0

Resources
15
 
The author is amazing, it looks very good. How did you make the shell? Is it 3D printed?

Comments

It's 3D printed.  Details Published on 2023-11-26 13:35
 
 
 

2625

Posts

6

Resources
16
 

This is possible. It can be used as a key wizard.

Comments

Yes, DIY keyboard is more fun  Details Published on 2023-11-26 13:35
Personal signature

希望做一些大家觉得好用的东西!

 
 
 

1w

Posts

25

Resources
17
 
lkh747566933 posted on 2023-11-25 02:17 The author is awesome, it looks great. How did you make the shell? Is it 3D printed?

It's 3D printed.

Comments

It should be painted, otherwise it wouldn't be so smooth. Maybe the printing material is more advanced.  Details Published on 2023-11-27 11:22
 
 
 

1w

Posts

25

Resources
18
 
xutong posted on 2023-11-25 11:13 This is possible, it can be used as a keystroke wizard

Yes, DIY keyboard is more fun

 
 
 

1463

Posts

0

Resources
19
 
dcexpert posted on 2023-11-26 13:35 According to the description, it is 3D printed

It should be painted, otherwise it wouldn't be so smooth. Maybe the printing material is higher quality.

 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list