Skip to content
SG Wireless Document Hub
sgwireless.com
  • Home
  • Product Information
    • F1 Smart Module
      • General Features
      • Electrical Specifications
        • Rating & Conditions
        • WiFi
        • Bluetooth
        • LTE
        • LoRa(WAN)
      • Module Interface
      • Mechanical Data
      • MicroPython
      • Product Packaging
      • Revision History
      • Certification
    • F1 Starter Kit
      • Introduction
      • Features
      • Starter Kit Overview
      • Hardware
      • Mechanical Information
      • Board Operation
      • REPL Commands
  • Getting Started
    • Unboxing your Starter Kit
    • Setting up your Ctrl. account
    • Connecting your Starter Kit
    • Getting sensor data
    • Introducing VS CtrlR
    • Creating custom projects
    • Programming the basics
    • Setting up custom networks
  • Taking Ctrl.
    • Account Settings
    • Configure Networks
      • Configure Wi-Fi
      • Configure LTE
      • Ctrl with LoRa
    • Add Device to Ctrl
    • Visualize Signals
    • Sensors in Ctrl
  • Tutorials & Examples
    • Basic
      • REPL
      • Sleep
      • Print
      • RGB LED Tutorial
      • GPIO
    • Hardware
      • ADC
      • I2C
      • Timers
    • Networks
      • WiFi
      • BLE
      • LoRa
        • LoRaWAN ABP
        • LoRaWAN OTAA
        • LoRa RAW
      • LTE
        • Power Saving Mode
  • Firmware & API Reference
    • Ctrl Client
    • RGB LED
    • LTE Module
    • LoRa API 
      • LoRa Callbacks
      • LoRa RAW
      • LoRa WAN
  • Contact
  • License
  • Home
  • Product Information
    • F1 Smart Module
      • General Features
      • Electrical Specifications
        • Rating & Conditions
        • WiFi
        • Bluetooth
        • LTE
        • LoRa(WAN)
      • Module Interface
      • Mechanical Data
      • MicroPython
      • Product Packaging
      • Revision History
      • Certification
    • F1 Starter Kit
      • Introduction
      • Features
      • Starter Kit Overview
      • Hardware
      • Mechanical Information
      • Board Operation
      • REPL Commands
  • Getting Started
    • Unboxing your Starter Kit
    • Setting up your Ctrl. account
    • Connecting your Starter Kit
    • Getting sensor data
    • Introducing VS CtrlR
    • Creating custom projects
    • Programming the basics
    • Setting up custom networks
  • Taking Ctrl.
    • Account Settings
    • Configure Networks
      • Configure Wi-Fi
      • Configure LTE
      • Ctrl with LoRa
    • Add Device to Ctrl
    • Visualize Signals
    • Sensors in Ctrl
  • Tutorials & Examples
    • Basic
      • REPL
      • Sleep
      • Print
      • RGB LED Tutorial
      • GPIO
    • Hardware
      • ADC
      • I2C
      • Timers
    • Networks
      • WiFi
      • BLE
      • LoRa
        • LoRaWAN ABP
        • LoRaWAN OTAA
        • LoRa RAW
      • LTE
        • Power Saving Mode
  • Firmware & API Reference
    • Ctrl Client
    • RGB LED
    • LTE Module
    • LoRa API 
      • LoRa Callbacks
      • LoRa RAW
      • LoRa WAN
  • Contact
  • License
Tutorials & Examples
Basic

Basic

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.

REPL

Sleep

There are several sleep modes to make your device sleep.

  • Basic sleep
  • Light sleep
  • Deep sleep
Sleep

Print

Similar to printf() function in C, you can use the print() statements in your MicroPython script, also concatenate strings and variables inline.

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.

RGB LED

GPIO

The module has several spare General Purpose Input-Output (GPIO) pins available for you to use with your own sensors and actuators.

GPIO