From ab67eaf505968a0f27c3aa7c78dc7e337e2f15a6 Mon Sep 17 00:00:00 2001 From: Rob Lauer Date: Wed, 11 Nov 2026 13:32:39 -0600 Subject: [PATCH] docs: name the Notecard object nCard in the README samples The setup samples named it card, which shadows the card helper module that the Fluent API sample imports a few lines later. Co-Authored-By: Claude Opus 5.5 --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index afb26ab..046c784 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ consult the [examples](examples/) directory for platform-specific guidance. import serial port = serial.Serial("/dev/serial0", 9600) -card = notecard.OpenSerial(port) +nCard = notecard.OpenSerial(port) ``` #### macOS and Windows @@ -65,7 +65,7 @@ port = serial.Serial(port="/dev/tty.usbmodemNOTE1", # port = serial.Serial(port="COM4", # baudrate=9600) -card = notecard.OpenSerial(port) +nCard = notecard.OpenSerial(port) ``` @@ -76,7 +76,7 @@ card = notecard.OpenSerial(port) from periphery import I2C port = I2C("/dev/i2c-1") -card = notecard.OpenI2C(port, 0, 0) +nCard = notecard.OpenI2C(port, 0, 0) ``` ### Sending Notecard Requests @@ -94,7 +94,7 @@ object. req = {"req": "note.add"} req["body"] = {"temp": 18.6} -rsp = card.Transaction(req) +rsp = nCard.Transaction(req) print(rsp) # {"total":1} ```