BPI:bit MicroPython application tutorial (development tutorial may be late, but never absent -V-)


(bpi team) #1

micropython1

BPI:bit easy to learn tutorial

catalogue

Source code on github

BPI:bit for MicroPython github

Base about BPI:bit

Please browse the tutorial in the following order.

1. About BPI:bit

  • Know the basic situation of the board。

  • Click on the title to enter, only two minutes to read.

2. Get the development suite

  • Understand the project structure of the board.

  • Click on the title to enter, just a minute to read.

3. Wired connection board

  • Connect the board and install the driver.

  • Click on the title to enter, only five minutes to read.

5. Try burning the board

  • One key to burn the board’s firmware.

  • Click on the title to enter, just three minutes to read.

6. Hello, World!

  • One line of code, hello world.

  • Click on the title to enter, only four minutes to read.

7. Light up all kinds of LED

  • One line of code to control the hardware.

  • Click on the title to enter and read for only six minutes.

Write it down at the end

So far, you have mastered a lot of simple use methods, but such you are still just “know it but do not know why”, so you need to calm down and experience some of the basic knowledge of learning, in order to know why also.

Board development tools

1. Auto series one key burn

2. ESPBlocks Beginner’s only

3. Mpfshell details

4. Pycharm IDE programming

Development tutorial(Based on MicroBit):

1. Panel scrolling text

2. Panel display images

3. Bottom IO port contro

4. Panel key detection

5. Gets the board temperature

6. Play MIDI music

7. Photosensitive gesture

8. MPU-9250 9-axis sensor

9. Make a compass

10. [Free to define gestures]

11. Random number generator

12. S2m Scratch2

13. Codelab Scratch3

Development of advanced:

1. The basic algorithm

2. WiFI wireless connection

3. WiFI wireless programming

3. [无线运行程序]

4. [无线文件管理]

5. [建立动态网站]

6. [网络爬虫示例]

7. [提供网络服务]

8. [控制智能家居]

9. MQTT communication applications

1. Get the city weather

2. [自定义的骰子]

3. [水滴平衡模拟]

笔记,陶冶一下?

1. MicroPython 移植笔记

2. WebDAV 移植笔记

3. smartconfig 设计演变


(Tezenas Du Montcel) #2

Hello,

The proposed method is far too complicated for the world of education. You have to offer a much simpler solution than the microbit card that offers an online IDE that is hypersimple and very efficient. Just type its code in python, then click on upload, and the python code is upload in the microbit card connected via USB. Childlike simplicity Nothing to do with your method which is without any compéraison and much too complex and totally unsuitable. Thank you to quickly correct the shot and make us a proposotion own type IDE online or integration into the IDE Mu. regards Julien


(Juwan) #3

In response to your question, we first used ESPBlocks. Exe, which I think you know is documented here, and now I have recorded a tutorial that USES video specifically.

espblocks blockly on bpi:bit

If you can not visit, please inform, thank you.

In spite of that, I use scratch3 in general now, so I won’t continue to support ESPBlocks. Exe.


(Tezenas Du Montcel) #4

Hello,

In your online document, in the download part of the IDE for python programming, there is a 404 error. So you can not download the tool. I feel that your espblock tool looks like Mu, and that’s great news. But I am very surprised to see that you provide links that does not work ?? Could then give me the links to a reliable, verified and functional document.

Tell you about the scratch3 version. But you give no indication how to use scracth3 with the bit map: beep.

definitely, since I’m on this forum, it’s still completely impossible for me to do any program, because your information does not allow to operate and implement any IDE. As a result, you can not program your card. Very surprising, because for the microbit card, it took me only a few seconds. There your documents are disorganized, incomplete, non-functional, in short, a real gas plant. When can you finally answer me very simply giving me a reliable and functional link to allow the programming of the bit card: python beep and blockly very simply, as tools for the microbit. I waste time not possible with your incomplete answers.

I do not ask for the moon, just an IDE for python and an IDE for blockly that works and that allow to upload a program in the map and implement the REPL mode.

As well as a VERY ACCURATE document on the APIs to use in python and blockly for the part Wifi network and bluetooth.

So please answer me this last time very precisely. AND do not turn around the pot anymore. Be direct and effective. thanks to help. Your sincerely. Julien


(Juwan) #5

I’m sorry. It’s not that I don’t want to give it to you.

Instead, you need to know more.

First, burn the MicroPython firmware to ensure that MicroPython is running internally.

Second, the direct serial tool connects to the REPL and is done.

Third, the posts about English have not been published yet. It’s not because I don’t want to give them to you, but I haven’t converted them from Chinese. I’m really sorry.

Because I am recording video, but I did not share it on youtobe and other places, so I can understand your anger, because if I were you, I would be disappointed with this product, but at present, I am still working on the basic video tutorial of MicroPython, so there is no post released, I am really sorry.


(Tezenas Du Montcel) #6

Hello,

You do not understand my requests at all. I contact you several times, you still do not answer accurately, it is painful, I waste a lot of time with you, you do not seem to be very serious.

I ask you first to tell me why we can not download your IDE (which seems to be like Mu and must be very good). You have a doc here.

Impossible to dowload the IDE here, error 404!!! https://github.com/BPI-STEAM/BPI-BIT-MicroPython/releases/tag/BlocksTools

Could you behave like a real professional and give documents that are reliable. There it goes in all directions. We want very simple things:

  1. download an IDE like Mu
  2. have a python API doc
  3. ability to upload his program into the map in stand-alone mode (not in REPL mode)
  4. also have access to REPL mode

Frankly, with microbit, in 2 seconds, everything worked, with you, impossible to have a reliable doc to move forward. And you do not answer all my questions. It’s not all about making a map, you have to document it and know how to use it. So please, do what you need urgently, because I’m starting to lose patience, it’s been several weeks now that I’m asking you questions and you answer to the side without stopping. What is your will, not to sell your bit card: beep? Where is the problem? Thank you for your urgent help and very specific.

WARNING, no REPL mode at the start !!! The utility of your card is to be used in standalone mode, not in REPL dialog mode !!! Your sincerely Julien


(Tezenas Du Montcel) #7

Would it be possible to have definitively reliable documentation to realize a simple program in Python and the upload in the bitmap: beep. Still no response from you. Thank you for your kind help. Julien


(Tezenas Du Montcel) #8

More answer from you? Is there a problem? You do not answer my questions. Still impossible to program very simply your card Bit: bip in blockly and python. Can not flash the program in the map. No doc on your side. Where is the concern? You gave up? But why sell your product if you do not provide any functional IDE ?? Thanks to reply.


(Tezenas Du Montcel) #9

Hello,

Could you give me the IDE to use to program in Python the BPI:bit. Do you have a documentation online off all the API in python. How to upload the Python file in the BPI:bit card? Thanks to be very precise with examples and screen shot. Thanks

Julien


(bpi team) #10

wiki page for english :

http://wiki.banana-pi.org/BPI-Bit

online documents(just chinese )

https://bpi-steam-docs.readthedocs.io/zh_CN/latest/