-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup4uPyCraft.txt
41 lines (30 loc) · 1.48 KB
/
setup4uPyCraft.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
### Notes about how to set up the environment to run uPyCraft
uPyCraft(https://github.com/DFRobot/uPyCraft_src) is an IDE for playing
MicroPython on ESP32 and ESP8266. However, its document about how to prepare
for running it under Linux is too complex and not necessary.
Below are the steps to do it instead under GNU/Linux Debian Sid. Some
libraries should also be installed using pip3, but not tested.
sudo apt-get install qt4-dev-tools qt4-doc qt4-qtconfig qt4-demos qt4-designer
sudo apt-get install libqwt5-qt4 libqwt5-qt4-dev
sudo apt-get install python3-wxgtk4.0
sudo apt-get install python3
sudo apt-get install python3-pip
sudo apt-get install python3-sip
sudo apt-get install python3-pyqt4
sudo apt-get install python3-pyqt4.qsci # this is for qscintilla2
sudo pip3 install pyserial pyflakes
This steps are for python2 instead of python3, maybe useful:
sudo apt-get install python-sip
sudo apt-get install python-qt4 # note: just "qt4" instead of "pyqt4".
sudo apt-get install python-qscintilla2
sudo pip install pyserial pyflakes
### PyQT5 project
And here is a PyQT5 version: https://github.com/jiapei100/uPyCraft_PyQt5
### How to Fix the "USB permission error"
Add a file "/etc/udev/rules.d/esp32.rules" with this line:
--------------------------------------------
KERNEL=="ttyUSB[0-9]*" GROUP="chunis" MODE="0660"
--------------------------------------------
You need to change "chunis" to your own group. Then run these commands:
sudo udevadm control --reload
sudo udevadm trigger