Added exceptions to gpio class

This commit is contained in:
2014-06-12 01:21:08 +02:00
parent 64d338cf90
commit cdb8edd4e0
5 changed files with 26 additions and 4 deletions

View File

@ -137,7 +137,7 @@ class GpioPin
public function dumpStatus($ansi=false)
{
if ($ansi) {
$status = "\e[43;37;1m GPIO{$this->pin} \e[0m\n";
$status = "\e[44;37;1m GPIO{$this->pin} \e[0m\n";
$direction = "\e[36;1m".
($this->direction=="input"?(CS::chr(0x2190)):(CS::chr(0x2192))).
"\e[0m ".$this->direction;