Added comments to device classes

This commit is contained in:
noccy committed 2014-06-12 16:11:35 +02:00
1 parent 551b9529cc
commit 3713efa6cc
2 files changed
+27 -5

No files matched your search

+2 -1
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);
}
}