Skip to content

Commit 49cf175

Browse files
committed
first commit
1 parent 545b9f5 commit 49cf175

File tree

101 files changed

+46821
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+46821
-12
lines changed

.gitignore

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1 @@
1-
CMakeLists.txt.user
2-
CMakeCache.txt
3-
CMakeFiles
4-
CMakeScripts
5-
Testing
6-
Makefile
7-
cmake_install.cmake
8-
install_manifest.txt
9-
compile_commands.json
10-
CTestTestfile.cmake
11-
_deps
1+
build

Python/Pico-LCD-0.96/ReadmeCN.txt

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
/*****************************************************************************
2+
* | File : Readme_CN.txt
3+
* | Author :
4+
* | Function : Help with use
5+
* | Info :
6+
*----------------
7+
* | This version: V1.0
8+
* | Date : 2021-03-31
9+
* | Info : 在这里提供一个中文版本的使用文档,以便你的快速使用
10+
******************************************************************************/
11+
这个文件是帮助您使用本例程。
12+
在这里简略的描述本工程的使用:
13+
14+
1.基本信息:
15+
本例程使用相对应的模块搭配Pico进行了验证,你可以在工程的中查看对应的测试例程;
16+
17+
2.管脚连接:
18+
管脚连接你可以在Pico-LCD-0.96.py查看,这里也再重述一次:
19+
LCD 0.96
20+
LCD => Pico
21+
VCC -> VSYS
22+
GND -> GND
23+
DIN -> 11
24+
CLK -> 10
25+
CS -> 9
26+
DC -> 8
27+
RST -> 12
28+
BL -> 13
29+
-----------------------------
30+
(KEY) Pico
31+
UP: -> 2
32+
DOWN: -> 18
33+
LEFT: -> 16
34+
RIGHT: -> 20
35+
CTRL: -> 3
36+
A: -> 15
37+
B: -> 17
38+
39+
3.基本使用:
40+
1): 按住Pico板上的按键,将pico通过Micro USB线接到树莓派的USB接口,然后松开按键。
41+
接入之后,电脑会自动识别到一个可移动盘(RPI-RP2)
42+
43+
2): 将python目录中pico_micropython_20210121.uf2 文件复制到识别的可移动盘(RPI-RP2)中
44+
45+
3): 更新Thonny IDE
46+
sudo apt upgrade thonny
47+
48+
4): 打开Thonny IDE (点击树莓logo -> Programming -> Thonny Python IDE )
49+
选择Tools -> Options... -> Interpreter
50+
选择MicroPython(Raspberry Pi Pico 和ttyACM0端口
51+
52+
5): 在Thonny IDE中打开python/Pico-LCD-0.96/Pico-LCD-0.96.py文件
53+
然后运行当前脚本(绿色小三角)即可
54+
55+
4.例程中像素画板的使用说明:
56+
例程中会显示一个8*16大小的方格(方格大小10*10 pixels)
57+
摇杆:
58+
上 -> 画笔上移
59+
下 -> 画笔下移
60+
左 -> 画笔左移
61+
右 -> 画笔右移
62+
ctrl(摇杆中心键) -> 更换画笔颜色
63+
A -> 按住A按键不放,在画笔位置填充实心像素块,颜色为当前画笔颜色,此时可操作摇杆连续填充
64+
B -> 清空像素画板
65+
66+
67+
68+

Python/Pico-LCD-0.96/ReadmeEN.txt

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
/*****************************************************************************
2+
* | File : Readme_EN.txt
3+
* | Author :
4+
* | Function : Help with use
5+
* | Info :
6+
*----------------
7+
* | This version: V1.0
8+
* | Date : 2021-03-31
9+
* | Info : Here is an English version of the documentation for your quick use.
10+
******************************************************************************/
11+
This file is to help you use this routine.
12+
Here is a brief description of the use of this project:
13+
14+
1. Basic information:
15+
This routine has been verified using the corresponding module with Pico,
16+
you can view the corresponding test routine in the project;
17+
18+
2. Pin connection:
19+
You can check the pin connection at Pico-LCD-0.96.py, and repeat it here:
20+
LCD 0.96
21+
LCD => Pico
22+
VCC -> VSYS
23+
GND -> GND
24+
DIN -> 11
25+
CLK -> 10
26+
CS -> 9
27+
DC -> 8
28+
RST -> 12
29+
BL -> 13
30+
-----------------------------
31+
(KEY) Pico
32+
UP: -> 2
33+
DOWN: -> 18
34+
LEFT: -> 16
35+
RIGHT: -> 20
36+
CTRL: -> 3
37+
A: -> 15
38+
B: -> 17
39+
40+
3. Basic use:
41+
1): Press and hold the button on the Pico board, connect Pico to the USB port of the
42+
Raspberry Pi through the Micro USB cable, and then release the button.
43+
After connecting, the computer will automatically recognize a removable disk (RPI-RP2)
44+
45+
2): Copy the pico_micropython_20210121.uf2 file in the python directory to the recognized
46+
removable disk (RPI-RP2)
47+
48+
3): Update Thonny IDE
49+
sudo apt upgrade thonny
50+
51+
4): Open Thonny IDE (Click raspberry logo -> Programming -> Thonny Python IDE )
52+
select Tools -> Options... -> Interpreter
53+
select MicroPython(Raspberry Pi Pico and ttyACM0 port
54+
55+
5): Open the python/Pico-LCD-0.96/Pico-LCD-0.96.py file in Thonny IDE
56+
Then run the current script (green triangle)
57+
58+
4. Instructions for the use of pixel artboard in the routine:
59+
The routine displays an 8*16 square (10*10 pixels).
60+
Handle:
61+
Up -> brush up
62+
Down -> brush down
63+
Left -> brush move left
64+
Right -> brush move right
65+
Control (Joystick Center) -> change the brush color
66+
A -> Hold down the A button and fill the solid pixel block at the brush position.
67+
The color is the current brush color.
68+
At this time, you can continuously fill with the joystick
69+
B -> Empties Pixel Artboard
70+

0 commit comments

Comments
 (0)