diff --git a/Foul_Fowl/main.py b/Foul_Fowl/main.py index 2cc99e43..978f00eb 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 1aad432e..d50caf38 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: