From 11f1f784c71e3d5624e565c85bd89be064a2fbe5 Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Tue, 29 Jul 2014 12:16:27 +0200 Subject: [PATCH] rgblcd.py: fix example to use 0xFF and not 0x255 which is out of bounds Signed-off-by: Brendan Le Foll --- examples/python/rgblcd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/python/rgblcd.py b/examples/python/rgblcd.py index 597dbbe..7c9d889 100644 --- a/examples/python/rgblcd.py +++ b/examples/python/rgblcd.py @@ -33,5 +33,5 @@ x.writeReg(1,0) # Be careful that your i2c device can actually handle a 'batch' handling of # such data, this is not typical in arduino type devices -s = "\x08\xAA\x04\x255\x02\x255" +s = "\x08\xAA\x04\xFF\x02\xFF" x.write(s)