Difference between revisions of "3 Hello, World!"

From Banana Pi Wiki
Jump to: navigation, search
(Run the program through repl)
(Blanked the page)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
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==
 
 
[[File:Program.png]]
 
 
(take Windows as an example) double-click to run windows-mpfshell.exe.
 
 
[[File:Index.png]]
 
{| class="wikitable"
 
|-
 
| style="background: PaleTurquoise; color: black" colspan="4"| '''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.
 
 
[[File: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.
 
 
[[File:Connected.png]]
 

Latest revision as of 22:25, 17 February 2019