From 7b7959ef2004c60c4234f5c9458dd3bbde44bf25 Mon Sep 17 00:00:00 2001 From: phennessey7 Date: Thu, 13 Apr 2023 12:15:55 -0700 Subject: [PATCH 1/2] Update noise.py Updated the song notes to play a more accurate version of the "Sailor's Hornpipe" tune! --- micropython/examples/pico_explorer/noise.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/micropython/examples/pico_explorer/noise.py b/micropython/examples/pico_explorer/noise.py index ba467afd..46cb48cc 100644 --- a/micropython/examples/pico_explorer/noise.py +++ b/micropython/examples/pico_explorer/noise.py @@ -109,8 +109,7 @@ tones = { } # put the notes for your song in here! -song = ["F6", "F6", "E6", "F6", "F5", "P", "F5", "P", "C6", "AS5", "A5", "C6", "F6", "P", "F6", "P", "G6", "FS6", "G6", "G5", "P", "G5", "P", "G6", "F6", "E6", "D6", "C6", "P", "C6", "P", "D6", "E6", "F6", "E6", "D6", "C6", "D6", "C6", "AS5", "A5", "AS5", "A5", "G5", "F5", "G5", "F5", "E5", "D5", "C5", "D5", "E5", "F5", "G5", "AS5", "A5", "G5", "A5", "F5", "P", "F5"] - +song = ["AS6", "A6", "AS6", "P", "AS5", "P", "AS5", "P", "F6", "DS6", "D6", "F6", "AS6", "A6", "AS6", "D7", "C7", "AS6", "C7", "P", "C6", "P", "C6", "P", "C6", "AS5", "A5", "C6", "F6", "P", "F6", "P", "G6", "A6", "AS6", "A6", "G6", "F6", "G6", "F6", "DS6", "D6", "DS6", "D6", "C6", "AS5", "AS5", "A5", "G5", "F5", "G5", "AS5", "A5", "C6", "AS5", "D6", "C6", "DS6", "D6", "P", "AS5", "P", "AS5"] def clear(): # this function clears Pico Explorer's screen to black display.set_pen(BLACK) From d78fffcd54c9767e1f633eb16a2738570427dd5d Mon Sep 17 00:00:00 2001 From: phennessey7 Date: Fri, 14 Apr 2023 10:04:07 -0700 Subject: [PATCH 2/2] Update noise.py Replaced extra blank line after edit on line 112 that was mistakenly deleted! --- micropython/examples/pico_explorer/noise.py | 1 + 1 file changed, 1 insertion(+) diff --git a/micropython/examples/pico_explorer/noise.py b/micropython/examples/pico_explorer/noise.py index 46cb48cc..72e13684 100644 --- a/micropython/examples/pico_explorer/noise.py +++ b/micropython/examples/pico_explorer/noise.py @@ -111,6 +111,7 @@ tones = { # put the notes for your song in here! song = ["AS6", "A6", "AS6", "P", "AS5", "P", "AS5", "P", "F6", "DS6", "D6", "F6", "AS6", "A6", "AS6", "D7", "C7", "AS6", "C7", "P", "C6", "P", "C6", "P", "C6", "AS5", "A5", "C6", "F6", "P", "F6", "P", "G6", "A6", "AS6", "A6", "G6", "F6", "G6", "F6", "DS6", "D6", "DS6", "D6", "C6", "AS5", "AS5", "A5", "G5", "F5", "G5", "AS5", "A5", "C6", "AS5", "D6", "C6", "DS6", "D6", "P", "AS5", "P", "AS5"] + def clear(): # this function clears Pico Explorer's screen to black display.set_pen(BLACK) display.clear()