Skip to content

Commit

Permalink
Spellcheck and lint draculad
Browse files Browse the repository at this point in the history
  • Loading branch information
xs5871 committed Oct 17, 2023
1 parent a22f9b4 commit d5ef819
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 28 deletions.
14 changes: 4 additions & 10 deletions boards/draculad/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@

The [DracuLad](https://github.com/MangoIV/dracuLad) is a feature-packed 30% sized, split bodied, columnar staggered keyboard.

![KeycaplessTopElev](https://github.com/mangoiv/draculad/raw/master/pictures/rev1/both_sides_underglow_oleds.jpg)
![Top View](https://github.com/mangoiv/draculad/raw/master/pictures/rev1/both_sides_underglow_oleds.jpg)

Retailers (USA)
[Boardsource](https://boardsource.xyz/store)

Extensions enabled by default
Extensions enabled by default
- [Layers](/docs/en/layers.md) Need more keys than switches? Use layers.
- [Split](/docs/en/split_keyboards.md) Connects halves using a wire.
- [peg_RGB_matrix](/docs/en/peg_rgb_matrix.md) Allows mod keys to act as different keys when tapped.
- [peg_oled_display](/docs/en/peg_oled_display.md) Connects halves using a wire.

Common Extensions
- [Power](/docs/enpower.md) Powersaving features for battery life
- [Peg RGB](/docs/en/peg_rgb_matrix.md)
- [Peg OLED](/docs/en/peg_oled_display.md)

## Microcontroller support

Expand Down
24 changes: 12 additions & 12 deletions boards/draculad/kb.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def __init__(self):
self.matrix = [
MatrixScanner(
# required arguments:
column_pins = self.col_pins,
row_pins = self.row_pins,
column_pins=self.col_pins,
row_pins=self.row_pins,
# optional arguments with defaults:
columns_to_anodes=DiodeOrientation.COL2ROW,
interval=0.02,
Expand All @@ -34,6 +34,7 @@ def __init__(self):
# divisor=4,
# )
]

col_pins = (
pins[avr['F4']],
pins[avr['F5']],
Expand All @@ -51,24 +52,23 @@ def __init__(self):
rgb_pixel_pin = pins[avr['D3']]
rgb_num_pixels = 20
i2c = board.I2C
SCL=pins[5]
SDA=pins[4]
pin_a1=pins[avr['B2']]
pin_a2=pins[avr['B4']]
pin_b1=pins[avr['B6']]
pin_b2=pins[avr['B5']]
led_key_pos=[
SCL = pins[5]
SDA = pins[4]
pin_a1 = pins[avr['B2']]
pin_a2 = pins[avr['B4']]
pin_b1 = pins[avr['B6']]
pin_b2 = pins[avr['B5']]
led_key_pos = [
5, 6, 7, 8, 9, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 0, 1, 2, 3, 4
]
brightness_limit = 1.0
num_pixels = 20

# NOQA
# flake8: noqa

# fmt: off
coord_mapping = [
0, 1, 2, 3, 4, 24, 23, 22, 21, 20,
5, 6, 7, 8, 9, 29, 28, 27, 26, 25,
10, 11, 12, 13, 14, 34, 33, 32, 31, 30,
17, 18, 19, 39, 38, 37
]
# fmt: on
9 changes: 4 additions & 5 deletions boards/draculad/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
keyboard.debug_enable = True
keyboard.modules.append(Layers())
# oled
oled_ext = Oled(
oled = Oled(
OledData(
corner_one={
0: OledReactionType.STATIC,
Expand All @@ -37,10 +37,9 @@
toDisplay=OledDisplayMode.TXT,
flip=True,
)
# oled
keyboard.extensions.append(oled_ext)
keyboard.extensions.append(oled)
# ledmap
rgb_ext = Rgb_matrix(
rgb = Rgb_matrix(
ledDisplay=[
[255, 255, 255],
[255, 255, 255],
Expand Down Expand Up @@ -68,7 +67,7 @@
disable_auto_write=True,
)
# ledmap
keyboard.extensions.append(rgb_ext)
keyboard.extensions.append(rgb)
split = Split(use_pio=True)
keyboard.modules.append(split)
_______ = KC.TRNS
Expand Down
3 changes: 2 additions & 1 deletion util/aspell.en.pws
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
personal_ws-1.1 en 344
personal_ws-1.1 en 345
ADNS
AMS
ANAVI
Expand Down Expand Up @@ -38,6 +38,7 @@ Dal
DisplayIO
Dispositivos
DotStar
DracuLad
EE
EVQWGD
EasyPoint
Expand Down

0 comments on commit d5ef819

Please sign in to comment.