import time from drivetrain import Drivetrain from adafruit_circuitplayground import cp import audioio import audiocore import board import neopixel drivetrain = Drivetrain() num_pixels = 15 pixels = neopixel.NeoPixel(board.A1, num_pixels, brightness=1, auto_write=False) cp.detect_taps = 1 wavfile = "SCREEEEEAM.wav" f = open(wavfile, "rb") wav = audiocore.WaveFile(f) a = audioio.AudioOut(board.A0) while True: drivetrain.forward() pixels.fill((0,255,0)) pixels.show() if cp.tapped: pixels.fill((255,0,0)) pixels.show() #a.play(wav) drivetrain.stop() drivetrain.back() time.sleep(1) drivetrain.right() time.sleep(1)