Exemple #1
0
// Set each provided pin to one in pin2gpio
static void
set_pin(int pin, float width)
{
  if (is_known_pin(pin)){
	set_pin2gpio(pin, width);
  }else{
	fprintf(stderr, "GPIO %d is not enabled for pi-blaster\n", pin);
  }
}
Exemple #2
0
// Set each provided pin to one in pin2gpio
static void
set_pin(int pin, float width)
{
  if (is_known_pin(pin)){
	set_pin2gpio(pin, width);
  }else{
	fprintf(stderr, "Not a known pin for pi-blaster\n");
  }
}