Skip to content

Commit 860d53a

Browse files
committed
python: Rename to framework16_inputmodule
Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 1bd85d1 commit 860d53a

File tree

12 files changed

+26
-26
lines changed

12 files changed

+26
-26
lines changed

python/framework16_inputmodules/cli.py renamed to python/framework16_inputmodule/cli.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from serial.tools import list_ports
77

88
# Local dependencies
9-
from framework16_inputmodules import gui
10-
from framework16_inputmodules.inputmodule import (
9+
from framework16_inputmodule import gui
10+
from framework16_inputmodule.inputmodule import (
1111
INPUTMODULE_PIDS,
1212
send_command,
1313
get_version,
@@ -18,15 +18,15 @@
1818
GameOfLifeStartParam,
1919
GameControlVal,
2020
)
21-
from framework16_inputmodules.gui.games import (
21+
from framework16_inputmodule.gui.games import (
2222
snake,
2323
snake_embedded,
2424
pong_embedded,
2525
game_of_life_embedded,
2626
wpm_demo,
2727
)
28-
from framework16_inputmodules.gui.ledmatrix import random_eq, clock, blinking
29-
from framework16_inputmodules.inputmodule.ledmatrix import (
28+
from framework16_inputmodule.gui.ledmatrix import random_eq, clock, blinking
29+
from framework16_inputmodule.inputmodule.ledmatrix import (
3030
eq,
3131
breathing,
3232
camera,
@@ -44,7 +44,7 @@
4444
image_bl,
4545
image_greyscale,
4646
)
47-
from framework16_inputmodules.inputmodule.b1display import (
47+
from framework16_inputmodule.inputmodule.b1display import (
4848
b1image_bl,
4949
invert_screen_cmd,
5050
screen_saver_cmd,
@@ -56,7 +56,7 @@
5656
display_on_cmd,
5757
display_string,
5858
)
59-
from framework16_inputmodules.inputmodule.c1minimal import (
59+
from framework16_inputmodule.inputmodule.c1minimal import (
6060
set_color,
6161
get_color,
6262
RGB_COLORS,

python/framework16_inputmodules/gui/__init__.py renamed to python/framework16_inputmodule/gui/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44

55
import PySimpleGUI as sg
66

7-
from framework16_inputmodules.inputmodule import (
7+
from framework16_inputmodule.inputmodule import (
88
send_command,
99
get_version,
1010
brightness,
1111
get_brightness,
1212
bootloader,
1313
CommandVals,
1414
)
15-
from framework16_inputmodules.gui.games import snake
16-
from framework16_inputmodules.gui.ledmatrix import countdown, random_eq, clock
17-
from framework16_inputmodules.gui.gui_threading import stop_thread, is_dev_disconnected
18-
from framework16_inputmodules.inputmodule.ledmatrix import (
15+
from framework16_inputmodule.gui.games import snake
16+
from framework16_inputmodule.gui.ledmatrix import countdown, random_eq, clock
17+
from framework16_inputmodule.gui.gui_threading import stop_thread, is_dev_disconnected
18+
from framework16_inputmodule.inputmodule.ledmatrix import (
1919
percentage,
2020
pattern,
2121
animate,

python/framework16_inputmodules/gui/games.py renamed to python/framework16_inputmodule/gui/games.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
import time
55
import threading
66

7-
from framework16_inputmodules.inputmodule import (
7+
from framework16_inputmodule.inputmodule import (
88
GameControlVal,
99
send_command,
1010
CommandVals,
1111
Game,
1212
)
13-
from framework16_inputmodules.inputmodule.ledmatrix import (
13+
from framework16_inputmodule.inputmodule.ledmatrix import (
1414
show_string,
1515
WIDTH,
1616
HEIGHT,

python/framework16_inputmodules/gui/ledmatrix.py renamed to python/framework16_inputmodule/gui/ledmatrix.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
import time
33
import random
44

5-
from framework16_inputmodules.gui.gui_threading import (
5+
from framework16_inputmodule.gui.gui_threading import (
66
reset_thread,
77
is_thread_stopped,
88
is_dev_disconnected,
99
)
10-
from framework16_inputmodules.inputmodule.ledmatrix import (
10+
from framework16_inputmodule.inputmodule.ledmatrix import (
1111
light_leds,
1212
show_string,
1313
eq,
1414
breathing,
1515
)
16-
from framework16_inputmodules.inputmodule import brightness
16+
from framework16_inputmodule.inputmodule import brightness
1717

1818

1919
def countdown(dev, seconds):

python/framework16_inputmodules/inputmodule/__init__.py renamed to python/framework16_inputmodule/inputmodule/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import serial
33

44
# TODO: Make independent from GUI
5-
from framework16_inputmodules.gui.gui_threading import disconnect_dev
5+
from framework16_inputmodule.gui.gui_threading import disconnect_dev
66

77
FWK_MAGIC = [0x32, 0xAC]
88
FWK_VID = 0x32AC

python/framework16_inputmodules/inputmodule/b1display.py renamed to python/framework16_inputmodule/inputmodule/b1display.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22

3-
from framework16_inputmodules.inputmodule import send_command, CommandVals, FWK_MAGIC
3+
from framework16_inputmodule.inputmodule import send_command, CommandVals, FWK_MAGIC
44

55
B1_WIDTH = 300
66
B1_HEIGHT = 400

python/framework16_inputmodules/inputmodule/c1minimal.py renamed to python/framework16_inputmodule/inputmodule/c1minimal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from framework16_inputmodules.inputmodule import send_command, CommandVals
1+
from framework16_inputmodule.inputmodule import send_command, CommandVals
22

33
RGB_COLORS = ["white", "black", "red", "green", "blue", "cyan", "yellow", "purple"]
44

0 commit comments

Comments
 (0)