3 Hello, World!

From Banana Pi Wiki
Revision as of 22:10, 17 February 2019 by Sinovoip (talk | contribs) (Run the program through repl)
Jump to: navigation, search

Hello World is one of the most famous programs.For every programmer, this program is the first example program in almost every programming language.In fact, all it does is tell the computer to say Hello World.Traditionally, this program has been used by programmers to test a new system or programming language.For programmers, seeing these two words on a computer screen is often a sign that their code is ready to compile, load, and run, and this output is meant to prove it, so take this as an example.

Program with MpfShell

  • Tips: please burn the MicroPython firmware before use.
  • For the needed materials, please go here to download windows-mpfshell. exe, which needs to be manually selected because the software version may be updated.

Run the program through repl

Program.png

(take Windows as an example) double-click to run windows-mpfshell.exe.

Index.png

BPI:bit
The colors that appear in turn explain
white Displays all supported command actions, top command for helpful instructions, bottom command for reverse.
yellow The above command for all the support, if you want to know the usage of the ls ` ` input ` help ls `.
blue Show the current insert board serial port name, as shown for ` com5 `, can input ` open com5 ` connected devices

To try to connect to the device, type open com5 (or o com5 for short). If nothing happens, use CTRL + C or the Red Cross in the upper right corner.

Opendev.png

Now hint: start the panel for the first time, if the networking function is used, if the lamp is connected to the panel when it is still rolling, the networking operation may be stopped, so when the networking function is found to be stopped, you need to manually execute wifi. Start () in repl, or use exec to execute the statement.

Previous tips: the first time you start the board, the first time the connection fails, you can try again according to the tips, so please pay attention to the red message.

Connected.png

When the Connected to esp32 is displayed, you can confirm that the board has been Connected successfully.