[Document sharing]-Print "Hello World"

Introduction

After the quick start of QuecPython, this document introduces how to print “Hello World” with QuecPython.

Print “Hello World”

Connect the EVB to PC. It is necessary to install driver and download module firmware. See Chapter Development Environment Building and Development Process for the operation methods.

Print in Interactive Interface

As shown in the figure below, the port is connected to the “Interactive Port of QuecPython” with QPYcom. Then select Interactive interface. After that, following printing is carried out.

>>> print('hello world')
hello world
>>> print("hello world")
hello world

Compile helloworld.py file and Print

  1. Create helloworld.py file and the compilation script is described below:
import utime    # Importing a Timing Module
print_num = 5   # Define the number of prints
while print_num:
    print("hello world")
    print_num -= 1   # Decrement
    utime.sleep(2)   # Delay in 2 seconds
  1. Download the code to module.

  1. Select the file and run it.

  1. Running result.

is python avaiable for quectel bg95? i mean, can i flash a file.py in the memory of my bg95m3 (trough quecOpen sdk and qefs tool) and just got the processor execute it? Thank in advance for the support

hi

bg95 m3 supports Quecpython.

Please refer to the link below for firmware download

Download | QuecPython (quectel.com)

1 Like