Skip to content

Commit b2cdaee

Browse files
committed
Linting.
1 parent 1110509 commit b2cdaee

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

adafruit_hid/keyboard.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
"""
3030

3131
import time
32-
import usb_hid
33-
3432
from micropython import const
33+
import usb_hid
3534

3635
from .keycode import Keycode
3736

37+
3838
class Keyboard:
3939
"""Send HID keyboard reports."""
4040

examples/joywing_gamepad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
import board
66
import busio
7+
from micropython import const
78
import adafruit_seesaw
89
from adafruit_hid.gamepad import Gamepad
9-
from micropython import const
1010

1111
def range_map(value, in_min, in_max, out_min, out_max):
1212
return (value - in_min) * (out_max - out_min) // (in_max - in_min) + out_min

examples/keyboard_shortcuts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import time
2-
from adafruit_hid.keyboard import Keyboard
3-
from adafruit_hid.keycode import Keycode
42
import board
53
import digitalio
4+
from adafruit_hid.keyboard import Keyboard
5+
from adafruit_hid.keycode import Keycode
66

77
kbd = Keyboard()
88

examples/scroll.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import time
2-
from adafruit_hid.mouse import Mouse
32
import board
43
import digitalio
4+
from adafruit_hid.mouse import Mouse
55

66
mouse = Mouse()
77

examples/simple_gamepad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import analogio
21
import board
32
import digitalio
3+
import analogio
44

55
from adafruit_hid.gamepad import Gamepad
66

0 commit comments

Comments
 (0)