From 118cb4e78459b5c1ab782c863fa69302df5a7fe8 Mon Sep 17 00:00:00 2001 From: per1234 Date: Mon, 6 May 2024 09:25:24 -0700 Subject: [PATCH] Correct `MKRIoTCarrier::display.print` snippets Previously the `carrier` object component of the statement was missing from the code snippets demonstrating the use of the "Arduino_MKRIoTCarrier" library's `MKRIoTCarrier::display.print` function. This would cause compilation of the snippet to fail: error: 'display' was not declared in this scope display.print("text"); ^~~~~~~ --- .../mkr-iot-carrier-rev2/tutorials/cheat-sheet/cheat-sheet.md | 2 +- .../mkr-iot-carrier-01-technical-reference.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/hardware/01.mkr/03.carriers/mkr-iot-carrier-rev2/tutorials/cheat-sheet/cheat-sheet.md b/content/hardware/01.mkr/03.carriers/mkr-iot-carrier-rev2/tutorials/cheat-sheet/cheat-sheet.md index 95edf91e78..a2160e69e2 100644 --- a/content/hardware/01.mkr/03.carriers/mkr-iot-carrier-rev2/tutorials/cheat-sheet/cheat-sheet.md +++ b/content/hardware/01.mkr/03.carriers/mkr-iot-carrier-rev2/tutorials/cheat-sheet/cheat-sheet.md @@ -359,7 +359,7 @@ carrier.display.setCursor(x, y); This method is very important, as it indicates where on the printing starts on the display. It is indicated by pixels, so, if **0, 0** are used for example, it will start printing in the top left corner. ```arduino -display.print("text"); +carrier.display.print("text"); ``` This method will print the text inside the string at the current cursor position. diff --git a/content/hardware/01.mkr/03.carriers/mkr-iot-carrier/tutorials/mkr-iot-carrier-01-technical-reference/mkr-iot-carrier-01-technical-reference.md b/content/hardware/01.mkr/03.carriers/mkr-iot-carrier/tutorials/mkr-iot-carrier-01-technical-reference/mkr-iot-carrier-01-technical-reference.md index b3b5cf85d5..42c9fa3287 100644 --- a/content/hardware/01.mkr/03.carriers/mkr-iot-carrier/tutorials/mkr-iot-carrier-01-technical-reference/mkr-iot-carrier-01-technical-reference.md +++ b/content/hardware/01.mkr/03.carriers/mkr-iot-carrier/tutorials/mkr-iot-carrier-01-technical-reference/mkr-iot-carrier-01-technical-reference.md @@ -363,7 +363,7 @@ carrier.display.setCursor(x, y); This method is very important, as it indicates where on the printing starts on the display. It is indicated by pixels, so, if **0, 0** are used for example, it will start printing in the top left corner. ```arduino -display.print("text"); +carrier.display.print("text"); ``` This method will print the text inside the string at the current cursor position.