7 segment display library for mbed This routine support 2,4 and 8 digit anode-common or cathode-common LED.

Dependents:   7segMbed

Revision:
1:12daa491059c
Parent:
0:6bf4ee8ee342
Child:
4:858e42224b50
--- a/Sseg.cpp	Sun Oct 20 05:59:40 2013 +0000
+++ b/Sseg.cpp	Thu Aug 07 02:26:56 2014 +0000
@@ -230,8 +230,8 @@
     _buffer[y] = tmp;
 }
 
-void Sseg::write(uint8_t y, uint8_t value) {
-    _buffer[y] = value;
+void Sseg::write(uint8_t d, uint8_t value) {
+    _buffer[d] = value;
 }
 
 void Sseg::write(uint8_t y, const uint8_t values[], uint8_t size) {