Skip to content

Hello 4ZeroBox

In this demo we will show how to run the simplest firmware on the 4ZeroBox.

More information about modules used in this demo:

from bsp import board
import gpio


# Print initial message.
print("Hello Zerynth!")

# Infinite loop.
while True:

    print("4ZeroBox led off")
    gpio.set(LED_BLUE,1)
    sleep(1000)

    print("4ZeroBox led on")
    gpio.set(LED_BLUE,0)
    sleep(1000)

In the first lines the board module is imported for the initial configuration of the 4ZeroBox.

The demo then prints an "Hello Zerynth!" message on the standard serial port (it can be read by opening it pressing Console in VSCode).

The code then enters an infinite loop that alternately turns on and off the blue led and prints the led status.