REPL
F1 smart module pre-installed MicroPython as operating system (OS), which equips with REPL. REPL stands for Read-Eval-Print Loop which is an Interactive Interpreter Mode that allows you to input code, execute it, and immediately see the results.
Open and connect a device or use serial terminal (PuTTY, screen, picocom, etc) with the CtrlR Plugin. Upon connecting, there should be a blank screen with a flashing cursor. Press Enter and a MicroPython prompt should appear, i.e. >>>. That’s where the commands go.
>>>
Sleep
There are several sleep modes to make your device sleep.
Print
Similar to printf() function in C, you can use the print() statements in your MicroPython script, also concatenate strings and variables inline.
printf()
print()
RGB LED
By default the heartbeat LED flashes in blue colour once every 4s to signal that the system is alive. This can be overridden through the SGW F1 Smart module.
GPIO
The module has several spare General Purpose Input-Output (GPIO) pins available for you to use with your own sensors and actuators.