Added comments to device classes

This commit is contained in:
2014-06-12 16:11:35 +02:00
parent 551b9529cc
commit 3713efa6cc
2 changed files with 27 additions and 5 deletions

View File

@ -32,6 +32,7 @@ class Pcd8544Device extends Device
->addLogicalPin(1, "sce", "chip select")
->addLogicalPin(2, "scl", "clock")
->addLogicalPin(3, "sda", "data")
->addLogicalPin(4, "res", "reset")
->addLogicalPin(9, "bl", "backlight")
;
}
@ -43,6 +44,6 @@ class Pcd8544Device extends Device
public function setBacklightState($state)
{
$this->bl->write((int)$state);
$this->bl->setValue((bool)$state);
}
}