@@ -0,0 +1,1327 @@
+#https://github.com/majikpig/ubtech/%0A%0A#setup and imports%0Aimport btnlib as btn;%0Aimport ledlib as led;%0Aimport laserlib as Laser;%0Aimport time;%0A%0A# LCD setup%0Aimport lcddriver;%0AGPIO.setmode(GPIO.BCM);%0AGPIO.setup(18,GPIO.OUT);%0AGPIO.output(18.True);%0Alcd = lcddriver.lcd();%0A%0A#Start coding%0A#Show Welcome Message%0Alcd.lcd_display_string(%22WELCOME!!%22,1);%0Atime.sleep(5);%0Alcd.lcd_clear();%0A#Start While loop until switch is turned off%0Awhile btn.isOn(btn.switch) :%0A%09sam = 0;%0A%09laser.on();%0A%09time.sleep(2);%0A%09laser.off();%0A%09time.sleep(0.25);%0A%09if btn.isOn(btn.red):%0A%09%09if btn.isOn(btn.yellow): # if yellow and red it pressed %0A%09%09%09laser.on();%0A%09%09%09time.sleep(0.10);%0A%09%09%09laser.off();%0A%09%09%09time.sleep(0.10);%0A%09%09else: #if read button pressed without yellow%0A%09%09%09led.blink(led.red, 50, 1);%0A%09%09%09led.blink(led.orange, 50, 1);%0A%09%09%09led.blink(led.yellow, 50, 1);%0A%09%09%09led.blink(led,green, 50, 1);%0A%09%09%09led.blink(led.blue, 50, 1);%0A%09%09%09led.blink(led.purple, 50, 1);%0A%09%09%09led.blink();%0A%09if btn.isOn(btn.yellow):%0A%09%09while(sam == 0):%0A%09%09%09led.turn_on(led.red);%0A%09%09%09led.turn_on(led.yellow);%0A%09%09%09led.turn_on(led.blue);%0A%09%09%09led.turn0_on(led.white);%0A%09%09%09time.sleep(3);%0A%09%09%09sam = 1;%09%09%0A%09%09led.switch(lcd.red);%0A%09%09led.switch(lcd.orange);%0A%09%09led.switch(lcd.yellow);%0A%09%09led.switch(lcd.green);%0A%09%09led.switch(lcd.blue);%0A%09%09led.switch(lcd.purple);%0A%09%09led.switch(lcd.white);%0A%09%09%09%0Aprint %22Goodbye%22%0Abtn.GPIO.cleanup()%0A

Create bruce.py