aboutsummaryrefslogtreecommitdiff
path: root/7seg-hex.py
diff options
context:
space:
mode:
authorBenedict <benedict@0xb8000.de>2018-04-12 18:39:09 +0200
committerBenedict <benedict@0xb8000.de>2018-04-12 21:22:44 +0200
commit9fadce0ed7bf448dc3e109f9a29aab08233ccbac (patch)
tree17449cc66066d33f86b5d999e45e09764bd4458f /7seg-hex.py
parentdf8543dc4d560ec3db278aca544a3750d0f9996e (diff)
pi: eeprom: converted to base 16 instead of 10
Diffstat (limited to '7seg-hex.py')
-rw-r--r--7seg-hex.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/7seg-hex.py b/7seg-hex.py
index 9ee9e69..e1bc35b 100644
--- a/7seg-hex.py
+++ b/7seg-hex.py
@@ -36,6 +36,11 @@ ep.write_data_at(0x6, SEG_A | SEG_F | SEG_G | SEG_C | SEG_D | SEG_E)
ep.write_data_at(0x7, SEG_A | SEG_B | SEG_C)
ep.write_data_at(0x8, SEG_A | SEG_B | SEG_C | SEG_D | SEG_E | SEG_F | SEG_G)
ep.write_data_at(0x9, SEG_A | SEG_B | SEG_C | SEG_D | SEG_F | SEG_G)
-
+ep.write_data_at(0xa, SEG_A | SEG_B | SEG_C | SEG_E | SEG_F | SEG_G)
+ep.write_data_at(0xb, SEG_C | SEG_D | SEG_E | SEG_F | SEG_G)
+ep.write_data_at(0xc, SEG_A | SEG_D | SEG_E | SEG_F)
+ep.write_data_at(0xd, SEG_B | SEG_C | SEG_D | SEG_E | SEG_G)
+ep.write_data_at(0xe, SEG_A | SEG_D | SEG_G | SEG_F | SEG_E)
+ep.write_data_at(0xf, SEG_A | SEG_E | SEG_F | SEG_G)
ep. cleanup()