aboutsummaryrefslogtreecommitdiff
path: root/ports/nrf/examples/musictest.py
diff options
context:
space:
mode:
authorDamien George2020-02-27 15:36:53 +1100
committerDamien George2020-02-28 10:33:03 +1100
commit69661f3343bedf86e514337cff63d96cc42f8859 (patch)
treeaf5dfb380ffdb75dda84828f63cf9d840d992f0f /ports/nrf/examples/musictest.py
parent3f39d18c2b884d32f0443e2e8114ff9d7a14d718 (diff)
all: Reformat C and Python source code with tools/codeformat.py.
This is run with uncrustify 0.70.1, and black 19.10b0.
Diffstat (limited to 'ports/nrf/examples/musictest.py')
-rw-r--r--ports/nrf/examples/musictest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ports/nrf/examples/musictest.py b/ports/nrf/examples/musictest.py
index 46276d3ef..8f4523877 100644
--- a/ports/nrf/examples/musictest.py
+++ b/ports/nrf/examples/musictest.py
@@ -1,4 +1,4 @@
-#
+#
# Example usage where "P3" is the Buzzer pin.
#
# from musictest import play
@@ -8,6 +8,7 @@
from machine import Pin
import music
+
def play(pin_str):
p = Pin(pin_str, mode=Pin.OUT)
music.play(music.PRELUDE, pin=p)