Skip to content

Commit f3ea8e8

Browse files
authored
Merge pull request #833 from kattni/cpb-cpx-hid-update
Update docstring to generalise for Circuit Playgrounds
2 parents ea4c43e + b771de9 commit f3ea8e8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Introducing_CircuitPlaygroundExpress/CircuitPlaygroundExpress_HIDKeyboard.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CircuitPlaygroundExpress_HIDKeyboard
1+
# Circuit Playground HID Keyboard
22

33
import time
44

@@ -8,7 +8,7 @@
88
from adafruit_hid.keycode import Keycode
99
from digitalio import DigitalInOut, Direction, Pull
1010

11-
# A simple neat keyboard demo in circuitpython
11+
# A simple neat keyboard demo in CircuitPython
1212

1313
# The button pins we'll use, each will have an internal pulldown
1414
buttonpins = [board.BUTTON_A, board.BUTTON_B]
@@ -25,7 +25,7 @@
2525
# we're americans :)
2626
layout = KeyboardLayoutUS(kbd)
2727

28-
# make all pin objects, make them inputs w/pulldowns
28+
# make all pin objects, make them inputs with pulldowns
2929
for pin in buttonpins:
3030
button = DigitalInOut(pin)
3131
button.direction = Direction.INPUT
@@ -53,7 +53,7 @@
5353
while button.value:
5454
pass # wait for it to be released!
5555
# type the keycode or string
56-
k = buttonkeys[i] # get the corresp. keycode/str
56+
k = buttonkeys[i] # get the corresponding keycode or string
5757
if isinstance(k, str):
5858
layout.write(k)
5959
else:

0 commit comments

Comments
 (0)