Skip to content

Commit

Permalink
temporarily remove special punctuation
Browse files Browse the repository at this point in the history
  • Loading branch information
Guy Dupont committed Jul 1, 2022
1 parent dfb981f commit 930e92a
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions fw/core/code.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import time
from led import Led
from t9_keypad import Keypad
from keyboard import Keyboard
from keyboard import Keycode
from t9_keyboard import Keyboard
from t9_keyboard import Keycode
from t9_display import Display
from key_map import key_map
from character_map import character_map
Expand Down
2 changes: 1 addition & 1 deletion fw/core/key_map.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
key_map = {'1':["1"],'2':["a","b","c"],'3':["d","e","f"],'4':["g","h","i"],'5':["j","k","l"],'6':["m","n","o"],'7':["p","q","r","s"],'8':["t","u","v"],'9':["w","x","y","z"],'0':[" ","0","\n"],'#':[".",",","?","!","\u00BF","\u00A1"]}
key_map = {'1':["1"],'2':["a","b","c"],'3':["d","e","f"],'4':["g","h","i"],'5':["j","k","l"],'6':["m","n","o"],'7':["p","q","r","s"],'8':["t","u","v"],'9':["w","x","y","z"],'0':[" ","0","\n"],'#':[".",",","?","!"]}
File renamed without changes.
2 changes: 1 addition & 1 deletion fw/pico/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* `adafruit_hid/consumer_control_code.mpy`
* `adafruit_hid/consumer_control.mpy`
* `adafruit_hid/gamepad.mpy`
* `adafruit_hid/keyboard_layout_us.mpy`
* `adafruit_hid/keyboard_layout.mpy` (It may be called `keyboard_layout_us.py` - if so, rename it without the `_us`)
* `adafruit_hid/keyboard.mpy`
* `adafruit_hid/keycode.mpy`
* `adafruit_hid/mouse.mpy`
Expand Down
4 changes: 2 additions & 2 deletions fw/pico/keyboard.py → fw/pico/t9_keyboard.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import usb_hid
import adafruit_hid.keyboard
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
from adafruit_hid.keyboard_layout import KeyboardLayout
import adafruit_hid.keycode

class Keyboard():
def __init__(self):
self.keyboard = adafruit_hid.keyboard.Keyboard(usb_hid.devices)
self.keyboard_layout = KeyboardLayoutUS(self.keyboard)
self.keyboard_layout = KeyboardLayout(self.keyboard)

def press(self, key):
self.keyboard.press(key)
Expand Down
2 changes: 1 addition & 1 deletion fw/qtpy2040/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* `adafruit_hid/consumer_control_code.mpy`
* `adafruit_hid/consumer_control.mpy`
* `adafruit_hid/gamepad.mpy`
* `adafruit_hid/keyboard_layout_us.mpy`
* `adafruit_hid/keyboard_layout.mpy` (It may be called `keyboard_layout_us.py` - if so, rename it without the `_us`)
* `adafruit_hid/keyboard.mpy`
* `adafruit_hid/keycode.mpy`
* `adafruit_hid/mouse.mpy`
Expand Down
4 changes: 2 additions & 2 deletions fw/qtpy2040/keyboard.py → fw/qtpy2040/t9_keyboard.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import usb_hid
import adafruit_hid.keyboard
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
from adafruit_hid.keyboard_layout import KeyboardLayout
import adafruit_hid.keycode

class Keyboard():
def __init__(self):
self.keyboard = adafruit_hid.keyboard.Keyboard(usb_hid.devices)
self.keyboard_layout = KeyboardLayoutUS(self.keyboard)
self.keyboard_layout = KeyboardLayout(self.keyboard)

def press(self, key):
self.keyboard.press(key)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion fw/tiny2040/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* `adafruit_hid/consumer_control_code.mpy`
* `adafruit_hid/consumer_control.mpy`
* `adafruit_hid/gamepad.mpy`
* `adafruit_hid/keyboard_layout_us.mpy`
* `adafruit_hid/keyboard_layout.mpy` (It may be called `keyboard_layout_us.py` - if so, rename it without the `_us`)
* `adafruit_hid/keyboard.mpy`
* `adafruit_hid/keycode.mpy`
* `adafruit_hid/mouse.mpy`
Expand Down
4 changes: 2 additions & 2 deletions fw/tiny2040/keyboard.py → fw/tiny2040/t9_keyboard.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import usb_hid
import adafruit_hid.keyboard
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
from adafruit_hid.keyboard_layout import KeyboardLayout
import adafruit_hid.keycode

class Keyboard():
def __init__(self):
self.keyboard = adafruit_hid.keyboard.Keyboard(usb_hid.devices)
self.keyboard_layout = KeyboardLayoutUS(self.keyboard)
self.keyboard_layout = KeyboardLayout(self.keyboard)

def press(self, key):
self.keyboard.press(key)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ val globalKeyMap = mapOf(
'8' to listOf('t', 'u', 'v', 'þ', 'û', 'ü', 'ù', 'ú', 'ū'),
'9' to listOf('w', 'x', 'y', 'z'),
'0' to listOf(' ', '0', '\n'),
'#' to listOf('.', ',', '?', '!', '¿', '¡')
'#' to listOf('.', ',', '?', '!')
)

// These characters should be available in every language
Expand Down

0 comments on commit 930e92a

Please sign in to comment.