Skip to content

Commit

Permalink
Merge pull request #1 from SSYYL/main
Browse files Browse the repository at this point in the history
first commit
  • Loading branch information
SSYYL authored May 22, 2021
2 parents 545b9f5 + 49cf175 commit c50bc57
Show file tree
Hide file tree
Showing 101 changed files with 46,821 additions and 12 deletions.
12 changes: 1 addition & 11 deletions .gitignore
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
68 changes: 68 additions & 0 deletions Python/Pico-LCD-0.96/ReadmeCN.txt
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 -> 清空像素画板




70 changes: 70 additions & 0 deletions Python/Pico-LCD-0.96/ReadmeEN.txt
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

Loading

0 comments on commit c50bc57

Please sign in to comment.