-
Notifications
You must be signed in to change notification settings - Fork 3
MaixPy
laurentopia edited this page May 25, 2019
·
15 revisions
- because the ribbon cable to the screen is fragile, install your maix Bit on a breadboard and affix the screen to it using Loctite Mount Putty Notice that the image is reversed, we'll fix that later.
- Acquire a good quality USB-C that does data. Most cables do power only, and suck.
- Plug the Maix Bit to your computer via the USB-C, go in the device manager and ensure that this shows up.
- download and install Putty
- launch Putty and open connection to your Maix Bit: set connection type to Serial, Change the Serial line to COM5, set the speed to 11520 then, while pressing the bootloader (bottom left button on the BIT) press OPEN.
-
Press CTRL+C, you can now type some Python
-
The boot python script on the BIT shows an upside down video feed. This is because new boards use a reversed connector for the camera so in fact the camera is upside down. You can fix that as follow:
- Rotate the board so the buttons are to the right
- type
pye ("boot.py")
- before the while loop, insert
lcd.direction(lcd.YX_LRUD)
- press CTRL+S, ENTER, and to exit CTRL+Q
- press the boot button and now the image is correct! YAY!
Now that your board is up and running, you can go to the Sipeed site where you'll find a very well documented API https://maixpy.sipeed.com/en/
- install 7Zip
- Download the MaixPy microphython .bin files from the assets section of https://github.com/sipeed/MaixPy/releases
- Download Kflash_gui that'll allow you to flash the MAIX https://github.com/sipeed/kflash_gui/releases
- launch kflash_gui, set the com port to your CH340 (COM5), change baudrate to 2000000 and open one of the .bin files, press the big blue DOWNLOAD button and wait.
- if the boot program doesn't work or you're unable to putty your way in, use uPyLoader, connect to the board and delete
freq.conf
Use the MaixPy IDE, it's good. http://dl.sipeed.com/MAIX/MaixPy/ide/