From e43369e5ae2029edd10f05e1e3c9cd90d3df5e1f Mon Sep 17 00:00:00 2001 From: Craig Richardson Date: Tue, 15 May 2018 15:56:39 +0100 Subject: [PATCH] Rename variables --- Foul_Fowl/main.py | 2 +- FruitBox_Sequencer/main.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Foul_Fowl/main.py b/Foul_Fowl/main.py index 2cc99e43a..978f00ebe 100644 --- a/Foul_Fowl/main.py +++ b/Foul_Fowl/main.py @@ -135,7 +135,7 @@ def launch_terminal(): time.sleep(pause) # type a message a few times - for i in range(3): + for _ in range(3): layout.write("HELLO FRIEND") # time.sleep(pause) kbd.press(Keycode.ENTER) diff --git a/FruitBox_Sequencer/main.py b/FruitBox_Sequencer/main.py index 1aad432e3..d50caf38f 100644 --- a/FruitBox_Sequencer/main.py +++ b/FruitBox_Sequencer/main.py @@ -42,11 +42,11 @@ step_pixel = [9, 8, 7, 6, 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2] step_col = [WHITE, RED, YELLOW, GREEN, AQUA, BLUE, PURPLE, BLACK] -def prog_mode(i): - cpx.play_file(audio_files[i]) - step_note[step] = i +def prog_mode(index): + cpx.play_file(audio_files[index]) + step_note[step] = index cpx.pixels[step_pixel[step]] = step_col[step_note[step]] - print("playing file " + audio_files[i]) + print("playing file " + audio_files[index]) while True: