From 034c0311ba4e59e132bf3f128ed49b768f7867f1 Mon Sep 17 00:00:00 2001 From: Jdaie <490844515@qq.com> Date: Sat, 10 Oct 2020 23:31:23 +0800 Subject: [PATCH] Updated PiSugar 2 (Pro) I2C Manual (markdown) --- PiSugar-2-(Pro)-I2C-Manual.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PiSugar-2-(Pro)-I2C-Manual.md b/PiSugar-2-(Pro)-I2C-Manual.md index 74a3c07..3897e23 100644 --- a/PiSugar-2-(Pro)-I2C-Manual.md +++ b/PiSugar-2-(Pro)-I2C-Manual.md @@ -21,7 +21,9 @@ When writing to a register, take care you convert the bit(s) to HEX. Example, to register GPIO1 at 0x51. GPIO1 is 01 at 3:2 bit, in a byte is 00000**01**0, becomes: -i2cset -y 1 0x75 0x51 *0x2* +``` +i2cset -y 1 0x75 0x51 0x2 +``` I2c tools ---------