Thingiverse
morsecode to plaintext keyboard
von TNPI2
2
Downloads
1
Likes
0
Makes
a Morse code to plaintext keyboard body designed for a raspberry pi pico microcontroller and a momentary button. the button needs to be hot glued in place for the best fit and soldering is required to complete the project. a copy of the python text to be loaded onto the pico along with circuit python and the adafruit hid library can be found below (i don't have a github so it may need refactoring)
import board
import digitalio
import time
import usb_hid
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode
led = digitalio.DigitalInOut(board.LED)
led.direction = digitalio.Direction.OUTPUT
key_A=Keycode.A
key_Shift = Keycode.SHIFT
keyboard=Keyboard(usb_hid.devices)
button = digitalio.DigitalInOut(board.GP28)
button.switch_to_input(pull=digitalio.Pull.DOWN)
letter = ""
letters = {"01":"A", "1000":"B", "1010":"C", "100":"D", "0":"E", "0010":"F", "110":"G", "0000":"H", "00":"I", "0111":"J", "101":"K", "0100":"L", "11":"M", "10":"N", "111":"O"
import board
import digitalio
import time
import usb_hid
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode
led = digitalio.DigitalInOut(board.LED)
led.direction = digitalio.Direction.OUTPUT
key_A=Keycode.A
key_Shift = Keycode.SHIFT
keyboard=Keyboard(usb_hid.devices)
button = digitalio.DigitalInOut(board.GP28)
button.switch_to_input(pull=digitalio.Pull.DOWN)
letter = ""
letters = {"01":"A", "1000":"B", "1010":"C", "100":"D", "0":"E", "0010":"F", "110":"G", "0000":"H", "00":"I", "0111":"J", "101":"K", "0100":"L", "11":"M", "10":"N", "111":"O"
Hast du dieses Modell gedruckt? Einloggen und dein Make teilen!
Melde dich an, um einen Kommentar zu hinterlassen
AnmeldenNoch keine Kommentare – sei der Erste!