""" Auteur: Yohan Chalier Interface: microbit Nom du projet: Robot télécommandé : Télécommande Description: No-description Toolbox: vittascience Mode: mixed Blocks: 76320ais_GAUCHEFALSEFALSETRUEFALSEFALSEFALSETRUEFALSEFALSEFALSETRUETRUETRUETRUETRUEFALSETRUEFALSEFALSEFALSEFALSEFALSETRUEFALSEFALSEbis_DROITEFALSEFALSETRUEFALSEFALSEFALSEFALSEFALSETRUEFALSETRUETRUETRUETRUETRUEFALSEFALSEFALSETRUEFALSEFALSEFALSETRUEFALSEFALSEa+bis_STOPTRUEFALSEFALSEFALSETRUEFALSETRUEFALSETRUEFALSEFALSEFALSETRUEFALSEFALSEFALSETRUEFALSETRUEFALSETRUEFALSEFALSEFALSETRUEpin_logoAVANCEFALSEFALSETRUEFALSEFALSEFALSETRUETRUETRUEFALSETRUEFALSETRUEFALSETRUEFALSEFALSETRUEFALSEFALSEFALSEFALSETRUEFALSEFALSE Projet généré par Vittascience. Ce fichier contient le code textuel ainsi que le code blocs. Il peut être importé de nouveau sur l'interface http://vittascience.com/microbit/ """ from microbit import * import radio radio.on() radio.config(channel = 7, power = 6, length = 32, group=0) while True: if button_a.is_pressed(): radio.send('GAUCHE') led_image = Image('00900:09000:99999:09000:00900') display.show(led_image) if button_b.is_pressed(): radio.send('DROITE') led_image = Image('00900:00090:99999:00090:00900') display.show(led_image) if button_a.is_pressed() and button_b.is_pressed(): radio.send('STOP') led_image = Image('90009:09090:00900:09090:90009') display.show(led_image) if pin_logo.is_touched(): radio.send('AVANCE') led_image = Image('00900:09990:90909:00900:00900') display.show(led_image)