Latest/current factory demo sketch for Uno R4 WiFi

Hi

What's the demo sketch for the latest/current Uno R4 WiFi, and is it available in any of the GitHub repos?

I recently purchased one for a project, and the factory installed demo sketch runs an LED matrix animation which features a heart, a snake game, and (I think) the Arduino "infinity" logo.

I'd like to get a copy of this sketch before overwriting it.

Thanks!

Tom

Welcome to the forum

Take a look at the Matrixintro example that is installed with the board files

Hi @wombatonga. I see @UKHeliBob already provided the answer while I was writing my reply, but since mine contains a bit more information I'll post it anyway:

The factory sketch is provided as one of the examples of the "LED_Matrix" library. That library is bundled with the installation of the "Arduino UNO R4 Boards" platform that adds support to Arduino IDE/Arduino Cloud Editor for the UNO R4 WiFi board.


If you are using Arduino IDE, you can open it by the following procedure:

  1. Select Tools > Board > Arduino UNO R4 Boards > Arduino UNO R4 WiFi from the Arduino IDE menus.
  2. Select File > Examples > LED_Matrix > MatrixIntro from the Arduino IDE menus.

If you are instead using Arduino Cloud Editor, you can open it by the following procedure:

  1. If you are not already, log in to your Arduino account:
    https://login.arduino.cc/login
  2. Click the following link to open the list of your Arduino Cloud sketches in the web browser:
    https://app.arduino.cc/sketches
  3. Click on any sketch, or use the CREATE > New sketch button to create a new sketch.
    The sketch will open in Arduino Cloud Editor.
  4. Select the "Libraries" icon from the bar on the left side of the Cloud Editor window to open the Libraries panel.
  5. Type LED_Matrix in the "Search libraries" field of the panel.
  6. Find the entry for the "LED_Matrix for renesas_uno" library in the search results.
  7. Click the "❯ Examples" under the "LED_Matrix for renesas_uno" entry.
    A list of all the example sketches of the library will appear.
  8. Click on the "MatrixIntro" example.

Please let us know if you have any questions or problems while following those instructions.

Thanks @UKHeliBob @ptillisch for the quick replies! Much appreciated.

I have seen that sketch in the examples, but haven't compiled/uploaded yet (wanted to confirm which one the board was pre-loaded with).

Thanks again!

Tom

Hi @ptillisch I am using a brand new Arduino® UNO R4 WiFi – 32-bit MCU with WiFi & Bluetooth — Arduino Official Store and can’t find that example sketch. I’d like to be able to archive it before uploading anything.

This is from the Arduino IDE Version 2.3.8:

Can you point me in the direction of the MatrixIntro example? I can’t find it in any of those submenus.

You're probably selecting the Arduino UNO (without R4).

If that were the case then this menu section would not appear

The matrixintro example is here

You're right. Sorry but I had missed it:

Mine is:

:+1:

It appears it’s not included by default, so had to search for it and install it manually:

Once installed, it appears:

FYI I still can’t find that exact factory installed demo sketch, but I can pull together those specific examples to create one.

I'm coming back from years ago. I had the same issue. The shipped R4 Wifi sketch was a heart morphing into an ekg, infinity back to a heart. Hard to believe one of the moderators haven't answered where in the hell you can find it......

FOUND..... See my post below.

In the Arduino IDE:

  1. Select Arduino UNO R4 WiFi under Tools → Board.
  2. Install Arduino_NetworkConfigurator through Library Manager if it is not already installed.
  3. Paste the sketch into a new window.
  4. Click Upload.

The BLE_AVAILABLE mode is the one associated with the heart/infinity-style “snake” animation followed by the beating heart. The animation was originally part of the board’s provisioning program, which is why it does not appear as the standard LED_Matrix → MatrixIntro

#include <Arduino_NetworkConfigurator.h>

void setup() {
LEDFeedbackClass::getInstance().begin();

LEDFeedbackClass::getInstance().setMode(
LEDFeedbackClass::LEDFeedbackMode::BLE_AVAILABLE
);
}

void loop() {
LEDFeedbackClass::getInstance().update();
}

See this post: What is the preloaded sketch delivered with the Uno R4 WiFi (from the R4 starter kit)? - #5 by ptillisch

The MatrixIntro sketch is commonly what is though of as the factory loaded sketch, and is the one that was on my board when I bought it.