From 4377f96c5828ec4ef9c61f03860e73f876f57ba7 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Fri, 18 Oct 2019 10:27:56 +0900 Subject: [PATCH] docs: fix undefined variable --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eeb5b6d..e04d341 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ const ADT7410_ADDR = 0x48; async function main() { const i2cAccess = await requestI2CAccess(); - const port = gpioAccess.ports.get(1); + const port = i2cAccess.ports.get(1); const i2cSlave = await port.open(ADT7410_ADDR); const temperature = (((await i2cSlave.read8(0x00)) << 8) + (await i2cSlave.read8(0x01))) / 128;