From fcc6962ddbe7d65b2b006f2bea6709ae9745cc55 Mon Sep 17 00:00:00 2001 From: Frank Delporte Date: Thu, 24 Oct 2024 13:36:12 +0200 Subject: [PATCH] Update deprecated Hugo value --- content/examples/jbang/pixelblaze_output_expander.md | 10 ++++++---- .../jbang/pixelblaze_output_expander_javafx.md | 4 ++++ themes/hugo-theme-learn/layouts/partials/logo.html | 2 +- themes/hugo-theme-learn/layouts/partials/menu.html | 6 +++--- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/content/examples/jbang/pixelblaze_output_expander.md b/content/examples/jbang/pixelblaze_output_expander.md index 62cea7288..764464856 100644 --- a/content/examples/jbang/pixelblaze_output_expander.md +++ b/content/examples/jbang/pixelblaze_output_expander.md @@ -130,7 +130,7 @@ Before proceeding with this example, make sure that you have a Raspberry Pi prep Jeff Vyduna and Ben Hencke of ElectroMage, the creators of Pixelblaze, provided example Java code for this project. The serial data format is [documented on GitHub](https://github.com/simap/pixelblaze_output_expander/tree/v3.x). What the code is doing in short: -* Open serial communication to `/dev/ttyS0`. Pi5 uses "/dev/ttyAMA0" +* Open serial communication. Depending on the type of board and the connection you are using (GPIO pin, or other serial connection), this can be a different port. Most probably it will be `/dev/ttyS0` (Raspberry Pi 4 or earlier), or `/dev/ttyAMA0` (Raspberry Pi 5). * Use BaudRate `2000000`, this is a hard requirement for the PBOE. * Send a byte array of RGB values for each LED. * Send a `drawAll` command to put the values on the LEDs. @@ -275,11 +275,13 @@ The main method needs to initialize the helper and contains a helper method to s private static PixelBlazeOutputExpanderHelper helper; public static void main(String[] args) throws InterruptedException { + // Depending on the type of board and the connection you are using + // (GPIO pin, or other serial connection), this can be a different port. + // Most probably it will be `/dev/ttyS0` (Raspberry Pi 4 or earlier), + // or `/dev/ttyAMA0` (Raspberry Pi 5). helper = new PixelBlazeOutputExpanderHelper("/dev/ttyS0"); - // Pi5 uses "/dev/ttyAMA0" - // helper = new PixelBlazeOutputExpanderHelper("/dev/ttyAMA0"); - // RGB commands will be added here + // RGB commands will be added here helper.closePort(); } diff --git a/content/examples/jbang/pixelblaze_output_expander_javafx.md b/content/examples/jbang/pixelblaze_output_expander_javafx.md index 9c124419e..801ea9054 100644 --- a/content/examples/jbang/pixelblaze_output_expander_javafx.md +++ b/content/examples/jbang/pixelblaze_output_expander_javafx.md @@ -69,6 +69,10 @@ private PixelBlazeOutputExpanderHelper helper; @Override public void start(Stage stage) { + // Depending on the type of board and the connection you are using + // (GPIO pin, or other serial connection), this can be a different port. + // Most probably it will be `/dev/ttyS0` (Raspberry Pi 4 or earlier), + // or `/dev/ttyAMA0` (Raspberry Pi 5). helper = new PixelBlazeOutputExpanderHelper("/dev/ttyS0"); VBox holder = new VBox(); diff --git a/themes/hugo-theme-learn/layouts/partials/logo.html b/themes/hugo-theme-learn/layouts/partials/logo.html index 19299b689..bfc1792a5 100644 --- a/themes/hugo-theme-learn/layouts/partials/logo.html +++ b/themes/hugo-theme-learn/layouts/partials/logo.html @@ -1,3 +1,3 @@ - diff --git a/themes/hugo-theme-learn/layouts/partials/menu.html b/themes/hugo-theme-learn/layouts/partials/menu.html index 32c9ddc6e..81edbe975 100644 --- a/themes/hugo-theme-learn/layouts/partials/menu.html +++ b/themes/hugo-theme-learn/layouts/partials/menu.html @@ -14,7 +14,7 @@ @@ -48,11 +48,11 @@

{{ if not $disableShortcutsTitle}}{{ T "Shortcuts-Title"}}{{ end }}

{{end}} - {{ if or .Site.IsMultiLingual $showvisitedlinks }} + {{ if or hugo.IsMultilingual $showvisitedlinks }}