Difference between revisions of "2 ESPBlocks Beginner's only"
(→Use Blockly to run the program) |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [[File:Webduino_gif.gif|thumb|Overview: [[BPI-Bit]]]] | ||
+ | [[File:Micropython3.png|thumb|[[1 Get the development suite]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[2 Wired connection board]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[3 Try burning the board]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[4 Hello, World!]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[5 Light up all kinds of LED]] ]] | ||
+ | |||
+ | |||
+ | [[File:Micropython4.png|thumb|[[1 Auto series one key burn]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[2 ESPBlocks Beginner's only]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[3 Mpfshell details]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[4 Pycharm IDE programming]] ]] | ||
+ | |||
+ | |||
+ | [[File:Micropython5.png|thumb|[[1. Panel scrolling text]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[2. Panel display images]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[3 Bottom IO port control]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[4 Panel key detection]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[5 Gets the board temperature]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[6 Play MIDI music]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[7 Photosensitive gesture]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[8. MPU-9250 9-axis sensor]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[9. Make a compass]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[10 Free to define gestures]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[11 Random number generator]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[12 S2m Scratch2]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[13 Codelab Scratch3]] ]] | ||
+ | |||
+ | [[File:Micropython6.png|thumb|[[1 The basic algorithm]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[2 WiFI wireless connection]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[3 WiFI wireless programming]] ]] | ||
+ | [[File:Micropython2.png|thumb|[[MQTT communication applications]]]] | ||
+ | |||
+ | |||
Program with ESPBlocks | Program with ESPBlocks | ||
Line 73: | Line 107: | ||
[[File:Result.jpg]] | [[File:Result.jpg]] | ||
+ | |||
+ | *Important: only compatible with most functions of microbit, so there will be some interface incompatibility problems. If there is a problem in the process of using, you can try to submit an issue to me, and I will fix it from the underlying firmware. | ||
+ | |||
+ | *Note that it is not a Microbit and is only compatible with common features, so I can't guarantee that you can use it as a Microbit entirely, especially with hardware interfaces that don't exist on bpibit | ||
+ | |||
+ | =open question= | ||
+ | |||
+ | *Note that this software is completely open source and is only recommended for beginners to use, so there will be some unsupported functions. If you need more complex functions, please use the series of mpfshell tools I maintain. | ||
+ | |||
+ | *List of known problems: | ||
+ | ::1,REPL support is poor and lacks some of the features that affect the experience, such as Tab auto completion, so don't worry if you don't know REPL. | ||
+ | ::2,Blockly's generated code has many incompatible interfaces, and the window cannot be opened twice. | ||
+ | ::3,Code assist is not supported, and there is no functional charm similar to Pycharm | ||
+ | ::4,File operation is not supported, file management is not possible, for example: Mpfshell support |
Latest revision as of 03:37, 21 February 2019
Program with ESPBlocks
Contents
The development tools
- use Windows click here to download.
- use Python source code click here to download, the need to build Python depend on the environment, you don't go into here.
Connect the board
- Windows for example, in any location directly run, it is recommended that there is no Chinese path.
- Double-click to open ESPblocks. Exe and wait for a moment while it releases the resource
- Whether or not there is a Connect board, the Connect search board will pop up once, or you can click on the Connect to pop up the window.
- Now we connect the board through the wire, it will automatically find the current connected board serial port and display, as shown in the figure below.
- Then click the button in the figure to confirm that it is their own board can be connected.
- the connection is completed as shown below:
- Wireless connection is not supported now
Use the Editor to run the program
- Prepare a piece of code and copy it into the white box.
print('\n') print('test') print('\n')
- Click the Run button to complete the Run
Use Blockly to run the program
- Follow the arrows in the figure below.
- When you click the Blockly button in the menu, a fixed size window pops up. This function cannot be reused at present, so you need to close the program to use it again.
- Select one of the display interface blocks in Blockly and it will appear synchronously in the edit box on the right, but you cannot edit code in Blockly mode.
- Then select the second square, the graphical interface square
- And then put it all together.
- The code is generated automatically.
- Click the Run button in the upper right corner to Run the program.
- The results are shown below.
- Important: only compatible with most functions of microbit, so there will be some interface incompatibility problems. If there is a problem in the process of using, you can try to submit an issue to me, and I will fix it from the underlying firmware.
- Note that it is not a Microbit and is only compatible with common features, so I can't guarantee that you can use it as a Microbit entirely, especially with hardware interfaces that don't exist on bpibit
open question
- Note that this software is completely open source and is only recommended for beginners to use, so there will be some unsupported functions. If you need more complex functions, please use the series of mpfshell tools I maintain.
- List of known problems:
- 1,REPL support is poor and lacks some of the features that affect the experience, such as Tab auto completion, so don't worry if you don't know REPL.
- 2,Blockly's generated code has many incompatible interfaces, and the window cannot be opened twice.
- 3,Code assist is not supported, and there is no functional charm similar to Pycharm
- 4,File operation is not supported, file management is not possible, for example: Mpfshell support