// Howdy 👋.
//
// This is where you can create powerful part automations like resistors that tell you when too much current is flowing through them
// You can also create your own flexible parts, like generics (https://docs.flux.ai/Introduction/generic-parts)
//
// If you are new to writing code in Flux make sure to check out our get started docs: https://docs.flux.ai/reference/introduction
//
// We also have a Flux Slack Community in case you need help: https://join.slack.com/t/fluxcommunity/shared_invite/zt-2hi664box-TNSNJ_~nUkNHkxeULXkSog
//
// To infinity and beyond 🚀
import RPi.GPIO as GPIO
import time
# Configuration des broches GPIO des capteurs à ultrasons
ultrasonic_pins = {
'USF': { 'trig': 40, 'echo': 38 },
'USR': { 'trig': 16, 'echo': 12 },
'USL': { 'trig': 7, 'echo': 8 },
'USB': { 'trig': 1, 'echo': 18 }
}
# Configuration des broches STEP, DIR et ENABLE des L297