From f7874548a2748b04f87e329adc29a683b2c3cd8a Mon Sep 17 00:00:00 2001 From: Dave Astels Date: Thu, 12 Jul 2018 18:02:29 -0400 Subject: [PATCH] Trim trailing spaces --- CircuitPython_101/basic_data_structures/play_note/code.py | 2 +- CircuitPython_101/basic_data_structures/song_book/code.py | 2 +- CircuitPython_101/basic_data_structures/song_list/code.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CircuitPython_101/basic_data_structures/play_note/code.py b/CircuitPython_101/basic_data_structures/play_note/code.py index 8f8b3d17..07b71caf 100644 --- a/CircuitPython_101/basic_data_structures/play_note/code.py +++ b/CircuitPython_101/basic_data_structures/play_note/code.py @@ -19,7 +19,7 @@ def play_note(note): if note[0] != 0: pwm = pulseio.PWMOut(board.D12, duty_cycle = 0, frequency=note[0]) # Hex 7FFF (binary 0111111111111111) is half of the largest value for a 16-bit int, - # i.e. 50% + # i.e. 50% pwm.duty_cycle = 0x7FFF time.sleep(note[1]) if note[0] != 0: diff --git a/CircuitPython_101/basic_data_structures/song_book/code.py b/CircuitPython_101/basic_data_structures/song_book/code.py index ae6396e3..7903025f 100644 --- a/CircuitPython_101/basic_data_structures/song_book/code.py +++ b/CircuitPython_101/basic_data_structures/song_book/code.py @@ -52,7 +52,7 @@ def play_note(note): if note[0] != 0: pwm = pulseio.PWMOut(board.D12, duty_cycle = 0, frequency=note[0]) # Hex 7FFF (binary 0111111111111111) is half of the largest value for a 16-bit int, - # i.e. 50% + # i.e. 50% pwm.duty_cycle = 0x7FFF time.sleep(note[1]) if note[0] != 0: diff --git a/CircuitPython_101/basic_data_structures/song_list/code.py b/CircuitPython_101/basic_data_structures/song_list/code.py index be915b50..1616d2e2 100644 --- a/CircuitPython_101/basic_data_structures/song_list/code.py +++ b/CircuitPython_101/basic_data_structures/song_list/code.py @@ -22,7 +22,7 @@ def play_note(note): if note[0] != 0: pwm = pulseio.PWMOut(board.D12, duty_cycle = 0, frequency=note[0]) # Hex 7FFF (binary 0111111111111111) is half of the largest value for a 16-bit int, - # i.e. 50% + # i.e. 50% pwm.duty_cycle = 0x7FFF time.sleep(note[1]) if note[0] != 0: