-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
101 changed files
with
46,821 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1 @@ | ||
CMakeLists.txt.user | ||
CMakeCache.txt | ||
CMakeFiles | ||
CMakeScripts | ||
Testing | ||
Makefile | ||
cmake_install.cmake | ||
install_manifest.txt | ||
compile_commands.json | ||
CTestTestfile.cmake | ||
_deps | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/***************************************************************************** | ||
* | File : Readme_CN.txt | ||
* | Author : | ||
* | Function : Help with use | ||
* | Info : | ||
*---------------- | ||
* | This version: V1.0 | ||
* | Date : 2021-03-31 | ||
* | Info : 在这里提供一个中文版本的使用文档,以便你的快速使用 | ||
******************************************************************************/ | ||
这个文件是帮助您使用本例程。 | ||
在这里简略的描述本工程的使用: | ||
|
||
1.基本信息: | ||
本例程使用相对应的模块搭配Pico进行了验证,你可以在工程的中查看对应的测试例程; | ||
|
||
2.管脚连接: | ||
管脚连接你可以在Pico-LCD-0.96.py查看,这里也再重述一次: | ||
LCD 0.96 | ||
LCD => Pico | ||
VCC -> VSYS | ||
GND -> GND | ||
DIN -> 11 | ||
CLK -> 10 | ||
CS -> 9 | ||
DC -> 8 | ||
RST -> 12 | ||
BL -> 13 | ||
----------------------------- | ||
(KEY) Pico | ||
UP: -> 2 | ||
DOWN: -> 18 | ||
LEFT: -> 16 | ||
RIGHT: -> 20 | ||
CTRL: -> 3 | ||
A: -> 15 | ||
B: -> 17 | ||
|
||
3.基本使用: | ||
1): 按住Pico板上的按键,将pico通过Micro USB线接到树莓派的USB接口,然后松开按键。 | ||
接入之后,电脑会自动识别到一个可移动盘(RPI-RP2) | ||
|
||
2): 将python目录中pico_micropython_20210121.uf2 文件复制到识别的可移动盘(RPI-RP2)中 | ||
|
||
3): 更新Thonny IDE | ||
sudo apt upgrade thonny | ||
|
||
4): 打开Thonny IDE (点击树莓logo -> Programming -> Thonny Python IDE ) | ||
选择Tools -> Options... -> Interpreter | ||
选择MicroPython(Raspberry Pi Pico 和ttyACM0端口 | ||
|
||
5): 在Thonny IDE中打开python/Pico-LCD-0.96/Pico-LCD-0.96.py文件 | ||
然后运行当前脚本(绿色小三角)即可 | ||
|
||
4.例程中像素画板的使用说明: | ||
例程中会显示一个8*16大小的方格(方格大小10*10 pixels) | ||
摇杆: | ||
上 -> 画笔上移 | ||
下 -> 画笔下移 | ||
左 -> 画笔左移 | ||
右 -> 画笔右移 | ||
ctrl(摇杆中心键) -> 更换画笔颜色 | ||
A -> 按住A按键不放,在画笔位置填充实心像素块,颜色为当前画笔颜色,此时可操作摇杆连续填充 | ||
B -> 清空像素画板 | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/***************************************************************************** | ||
* | File : Readme_EN.txt | ||
* | Author : | ||
* | Function : Help with use | ||
* | Info : | ||
*---------------- | ||
* | This version: V1.0 | ||
* | Date : 2021-03-31 | ||
* | Info : Here is an English version of the documentation for your quick use. | ||
******************************************************************************/ | ||
This file is to help you use this routine. | ||
Here is a brief description of the use of this project: | ||
|
||
1. Basic information: | ||
This routine has been verified using the corresponding module with Pico, | ||
you can view the corresponding test routine in the project; | ||
|
||
2. Pin connection: | ||
You can check the pin connection at Pico-LCD-0.96.py, and repeat it here: | ||
LCD 0.96 | ||
LCD => Pico | ||
VCC -> VSYS | ||
GND -> GND | ||
DIN -> 11 | ||
CLK -> 10 | ||
CS -> 9 | ||
DC -> 8 | ||
RST -> 12 | ||
BL -> 13 | ||
----------------------------- | ||
(KEY) Pico | ||
UP: -> 2 | ||
DOWN: -> 18 | ||
LEFT: -> 16 | ||
RIGHT: -> 20 | ||
CTRL: -> 3 | ||
A: -> 15 | ||
B: -> 17 | ||
|
||
3. Basic use: | ||
1): Press and hold the button on the Pico board, connect Pico to the USB port of the | ||
Raspberry Pi through the Micro USB cable, and then release the button. | ||
After connecting, the computer will automatically recognize a removable disk (RPI-RP2) | ||
|
||
2): Copy the pico_micropython_20210121.uf2 file in the python directory to the recognized | ||
removable disk (RPI-RP2) | ||
|
||
3): Update Thonny IDE | ||
sudo apt upgrade thonny | ||
|
||
4): Open Thonny IDE (Click raspberry logo -> Programming -> Thonny Python IDE ) | ||
select Tools -> Options... -> Interpreter | ||
select MicroPython(Raspberry Pi Pico and ttyACM0 port | ||
|
||
5): Open the python/Pico-LCD-0.96/Pico-LCD-0.96.py file in Thonny IDE | ||
Then run the current script (green triangle) | ||
|
||
4. Instructions for the use of pixel artboard in the routine: | ||
The routine displays an 8*16 square (10*10 pixels). | ||
Handle: | ||
Up -> brush up | ||
Down -> brush down | ||
Left -> brush move left | ||
Right -> brush move right | ||
Control (Joystick Center) -> change the brush color | ||
A -> Hold down the A button and fill the solid pixel block at the brush position. | ||
The color is the current brush color. | ||
At this time, you can continuously fill with the joystick | ||
B -> Empties Pixel Artboard | ||
|
Oops, something went wrong.