
How it works
This is the classic Arduino Blink on the UNO R4 WiFi, compiled with the official Arduino core and run on an emulated Renesas RA4M1, a 48 MHz Cortex-M4. LED_BUILTIN is the onboard LED on D13. setup() makes the pin an output, and loop() writes HIGH, waits 500 ms, writes LOW and waits 500 ms, so one full cycle takes a second.
delay() checks the time kept by the core's timer interrupt, so the blink rate depends on the emulated timer peripheral behaving like the real one, not on how fast instructions run. The board's header pads are solved at 5 V logic, and D13 carries the same signal that drives the LED.
What to watch
The onboard LED lights for half a second and goes dark for half a second. Probe D13 in Scope. With USB power, the square wave goes from about 0 V to 4.6 V and repeats every 1 s.
What's on the bench
- Arduino Uno R4
The code
This Arduino C++ sketch lives in Code; sign in and press Compile & upload to build real firmware for the emulated board.
// SPDX-License-Identifier: MIT // UNO R4 WiFi: blink the physical D13 onboard LED once per second. void setup() { pinMode(LED_BUILTIN, OUTPUT); } void loop() { digitalWrite(LED_BUILTIN, HIGH); delay(500); digitalWrite(LED_BUILTIN, LOW); delay(500); }
Firmware licence
Notice: this firmware uses the LGPL-licensed Arduino core library
arduino-unor4wifi-blink-gallery.bin is statically linked with ArduinoCore-renesas 1.6.0, in Breadboard's port of its UNO R4 WiFi variant to Renesas FSP 5.3.0. Parts of that core are licensed under the GNU Lesser General Public License, version 2.1 or (at your option) any later version ("the Library"). Breadboard distributes this firmware under terms that permit you to modify the work for your own use and to reverse engineer it for debugging such modifications.
- Relink package: arduino-unor4wifi-blink-gallery-relink.zip (345 KB)
- Corresponding source: ArduinoCore-renesas-1.6.0-fsp53-source.zip (3.7 MB)
- Licence texts and relink instructions
Try this
- Change the two delays to delay(100) and delay(900), then sign in and press Compile & upload. The LED now gives a short flash once per second.
- Wire a 220 Ω resistor and an LED from D13 to GND. The external LED blinks in step with the onboard one, because both follow the same pin.
- Replace the delays with a millis() check so loop() never stops, then add a second task, such as printing a counter to Serial every two seconds.



