From 699e82df9e7d843158321505168e6f7dc961aedd Mon Sep 17 00:00:00 2001 From: rcarteraz Date: Tue, 18 Jul 2023 21:44:06 -0700 Subject: [PATCH 1/2] Update serial.mdx Fix code block closing --- docs/configuration/module-config/serial.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/configuration/module-config/serial.mdx b/docs/configuration/module-config/serial.mdx index 4d629f2d..5f14d8e5 100644 --- a/docs/configuration/module-config/serial.mdx +++ b/docs/configuration/module-config/serial.mdx @@ -292,4 +292,5 @@ previousState = currentState; // update the previous state } delay(100); // small delay to avoid false sensor readings -} \ No newline at end of file +} +``` From 694c1c5e3e8b09cad4007331c35d203e73e74b23 Mon Sep 17 00:00:00 2001 From: rcarteraz Date: Tue, 18 Jul 2023 21:47:57 -0700 Subject: [PATCH 2/2] Update serial.mdx Add opening --- docs/configuration/module-config/serial.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/configuration/module-config/serial.mdx b/docs/configuration/module-config/serial.mdx index 5f14d8e5..a507ec5f 100644 --- a/docs/configuration/module-config/serial.mdx +++ b/docs/configuration/module-config/serial.mdx @@ -265,7 +265,7 @@ while True: #### Arduino Mini Pro Code - +```cpp int LED = 13; // the pin to which the LED is connected int PIR = 2; // the pin to which the sensor is connected int previousState = LOW; // previous state of the sensor