Example #1
0
 public function reverse()
 {
     $this->pin_a->low();
     $this->pin_b->high();
 }
Example #2
0
 public function toggle()
 {
     //This will still work if active low
     $this->pin->getLevel() === Pin::LEVEL_HIGH ? $this->pin->low() : $this->pin->high();
 }