URL: https://linuxfr.org/forums/programmation-c--2/posts/shell-script-langage-c Title: Shell script-->langage C Authors: oumayma Date: 2015年11月22日T13:08:22+01:00 License: CC By-SA Tags: Score: -6 Bonjour j'ai besoin d'aide concernant ce programme...je veux le traduire en langage C, merci d'avance. The Shell script to blink the LED is given as follows // Blink an LED on breadboard //PIN="26" # P8_6is gpio1_3 = (32 * 1) + 3 = 35 GPIOPIN="/sys/class/gpio/gpio$PIN" if [ -d "$GPIOPIN" ]; then echo "Blinking LED connected to Pin $PIN ..." else echo $PIN> /sys/class/gpio/export echo "Blinking LED connected to Pin $PIN ..." sleep 1 fi while true; do echo high> $GPIOPIN/direction sleep 2 echo low> $GPIOPIN/direction sleep 2 done fclose(duty); fclose(period); fclose(run); return 0; }