Difference between revisions of "Template:Pico-Pico-RGB-Matrix-P3-64x32 Manual"

From Waveshare Wiki
Jump to: navigation, search
Line 20: Line 20:
 
</gallery>
 
</gallery>
  
=== 实例快速演示 ===
+
=== Example display ===
==== 多功能数字电子时钟 ====
+
==== Multi-Features Digital Clock ====
 
<div style="max-width:100%;">
 
<div style="max-width:100%;">
本实例基于C++ SDK开发,为了快速演示实例的效果和功能,您可以跳过“[[Pico-RGB-Matrix-P3-64x32#.E5.BC.80.E5.8F.91.E7.8E.AF.E5.A2.83.E6.90.AD.E5.BB.BA|搭建C++ SDK开发环境]]”和“程序调试开发”步骤,直接“[[Pico-RGB-Matrix-P3-64x32#.E4.B8.8B.E8.BD.BD.E5.92.8C.E7.83.A7.E5.BD.95.E7.A8.8B.E5.BA.8F | 下载和烧录程序]]”。烧录完成后,实例运行的效果如下图所示:<br />
+
This example is developed based on the C++ SDK. In order to quickly demonstrate the effects and functions of the example, you can skip the steps of " Building a C++ SDK Development Environment " and "Program Debugging and Development" and directly " download and burn the program ". After the burning is completed, the running effect of the example is shown in the figure below:<br />
 
<div style="float:left;margin:5px;">
 
<div style="float:left;margin:5px;">
 
[[File:pico-rgb-matrix-p3-clock-cpp-sdk-1.jpg|440px]]
 
[[File:pico-rgb-matrix-p3-clock-cpp-sdk-1.jpg|440px]]
 
</div>
 
</div>
 
<div style="float:left;margin:5px;">
 
<div style="float:left;margin:5px;">
'''【功能说明】'''  
+
'''【Function Description】'''  
*时间显示界面:
+
*Time display screen:
**显示日期、星期、小时、分、农历和温度
+
**Display date, day of the week, hour, minute, lunar calendar and temperature
*功能设置菜单
+
*Function setting menu
**日期设置
+
**Date setting
**时间设置
+
**time setting
**BEEP设置 (蜂鸣设置)
+
**BEEP setting (buzzer setting)
**自动亮度
+
**Auto brightness
**语言设置 (开发中)
+
**Language setting (under development)
 
</div>
 
</div>
 
</div>
 
</div>
 
<div class="sep0px"></div>
 
<div class="sep0px"></div>
  
==== 水果机 ====
+
==== Fruit machine ====
 
<div style="max-width:100%;">
 
<div style="max-width:100%;">
本实例基于CircuitPython<ref>[https://learn.adafruit.com/getting-started-with-raspberry-pi-pico-circuitpython/micropython-or-circuitpython CircuitPython是MicroPython的一个分叉],具体使用请见 [https://learn.adafruit.com/rgb-led-matrices-matrix-panels-with-circuitpython  RGB-Matrix相关CircuitPython教程] </ref>开发,程序下载<ref> Pico须先[https://learn.adafruit.com/getting-started-with-raspberry-pi-pico-circuitpython/circuitpython 安装CircuitPython],然后再把对应的CircuitPythond代码复制到识别到的U盘上,即可完成下载。</ref>,实例效果和功能如下:<br />
+
This example is developed based on CircuitPython<ref>[https://learn.adafruit.com/getting-started-with-raspberry-pi-pico-circuitpython/micropython-or-circuitpython CircuitPython是MicroPython的一个分叉],具体使用请见 [https://learn.adafruit.com/rgb-led-matrices-matrix-panels-with-circuitpython  RGB-Matrix相关CircuitPython教程] </ref> , and the program is downloaded<ref> Pico须先[https://learn.adafruit.com/getting-started-with-raspberry-pi-pico-circuitpython/circuitpython 安装CircuitPython],然后再把对应的CircuitPythond代码复制到识别到的U盘上,即可完成下载。</ref> . The effects and functions of the example are as follows:
 +
<br />
 
<div style="float:left;margin:5px;">
 
<div style="float:left;margin:5px;">
 
[[File:Pico-RGB-Matrix-P3-64x32-details-17.png|440px]]
 
[[File:Pico-RGB-Matrix-P3-64x32-details-17.png|440px]]
 
</div>
 
</div>
 
<div style="float:left;margin:5px;">
 
<div style="float:left;margin:5px;">
'''【功能说明】'''
+
'''【Function Description】'''
*显示屏可显示多种水果或其他BMP小图标
+
*The display can display a variety of fruits or other small BMP icons
*定时自动滚动图标,并随机显示滚动的结果
+
*Automatically scroll icons at regular intervals, and randomly display the results of the scrolling
 
</div>
 
</div>
 
</div>
 
</div>
Line 57: Line 58:
  
  
==== 红外收发测试 ====
+
==== Infrared transceiver test ====
 
<div style="max-width:100%;">
 
<div style="max-width:100%;">
本实例基于MicroPython开发,[[Pico-RGB-Matrix-P3-64x32#.E4.B8.8B.E8.BD.BD.E5.92.8C.E7.83.A7.E5.BD.95.E7.A8.8B.E5.BA.8F_2 | 程序下载]],实例效果和功能如下:<br />
+
This example is developed based on MicroPython, the program is downloaded , the example effects and functions are as follows::<br />
 
<div style="float:left;margin:5px;">
 
<div style="float:left;margin:5px;">
 
[[File:RGB-Matrix-IR-Test.png|440px]]
 
[[File:RGB-Matrix-IR-Test.png|440px]]
 
</div>
 
</div>
 
<div style="float:left;margin:5px;">
 
<div style="float:left;margin:5px;">
'''【功能说明】'''
+
'''【Function Description】'''
*可识别到红外遥控器对应按键产生的红外序列码
+
* The infrared serial code generated by the corresponding button of the infrared remote control can be recognized
 
</div>
 
</div>
 
</div>
 
</div>

Revision as of 08:48, 8 October 2021

Demo example

Hardware connection

Materials needed

  • Pico-RGB-Matrix-P3-64x32 (this product)
  • Raspberry Pi Pico (must be purchased separately, if not, it is recommended to buy a version with soldered headers, which is convenient for direct insertion and use)
  • Micro USB cable (must be purchased separately)

Hardware connection steps

  1. 把底板对准红框处的槽位,接到RGB LED Matrix上
  2. 取出配套的转接线,用钳子剪出需要用到的部分转接线(约10cm)
  3. 把做好的转接线,一端连接到RGB LED Matrix,另一端固定到底板上
  4. 背面安装上亚克力板和磁吸螺钉
  5. 可选操作:如果觉得 RGB LED Matrix 比较炫眼或颗粒感较强,可以在屏上面贴上一层黑色亚克力盖板

Example display

Multi-Features Digital Clock

This example is developed based on the C++ SDK. In order to quickly demonstrate the effects and functions of the example, you can skip the steps of " Building a C++ SDK Development Environment " and "Program Debugging and Development" and directly " download and burn the program ". After the burning is completed, the running effect of the example is shown in the figure below:

Pico-rgb-matrix-p3-clock-cpp-sdk-1.jpg

【Function Description】

  • Time display screen:
    • Display date, day of the week, hour, minute, lunar calendar and temperature
  • Function setting menu
    • Date setting
    • time setting
    • BEEP setting (buzzer setting)
    • Auto brightness
    • Language setting (under development)

Fruit machine

This example is developed based on CircuitPython[1] , and the program is downloaded[2] . The effects and functions of the example are as follows:

Pico-RGB-Matrix-P3-64x32-details-17.png

【Function Description】

  • The display can display a variety of fruits or other small BMP icons
  • Automatically scroll icons at regular intervals, and randomly display the results of the scrolling
  1. CircuitPython是MicroPython的一个分叉,具体使用请见 RGB-Matrix相关CircuitPython教程
  2. Pico须先安装CircuitPython,然后再把对应的CircuitPythond代码复制到识别到的U盘上,即可完成下载。


Infrared transceiver test

This example is developed based on MicroPython, the program is downloaded , the example effects and functions are as follows::

RGB-Matrix-IR-Test.png

【Function Description】

  • The infrared serial code generated by the corresponding button of the infrared remote control can be recognized

硬件解析

底板资源简介

Pico-RGB-Matrix-P3-64x32-details-25.jpg

Pico连接引脚对应关系

底板 Pico 引脚描述
RGB LED Matrix 用到的引脚(HUB75接口)
R1 GP02 高位R数据
G1 GP03 高位G数据
B1 GP04 高位B数据
R2 GP05 高位R数据
G2 GP08 高位G数据
B2 GP09 高位B数据
A GP10 A行选择
B GP16 B行选择
C GP18 C行选择
D GP20 D行选择
E GP22 E行选择
CLK GP11 时钟输入
STB/LAT GP12 锁存引脚
OE GP13 输出使能

RGB-Matrix-P3-64x32-details-3.jpg

底板 Pico 引脚描述
底板其他资源用到的引脚
K0 GP15 KEY0按键,数字时钟的 MENU 菜单,也可以自定义
K1 GP19 KEY1按键,数字时钟的 + / Down 按键,也可以自定义
K2 GP21 KEY2按键,数字时钟的 - / UP 按键,也可以自定义
RUN RUN RESET 按键,可用于Pico复位
BOOTSET BOOTSET BOOT 按键,可用于Pico烧录程序(长按BOOT,再按下RESET,可进入固件下载模式)
SDA GP06 I2C 数据引脚,控制DS3231 RTC时钟芯片用到
SCL GP07 I2C 时钟引脚,控制DS3231 RTC时钟芯片用到
BUZZ GP27 蜂鸣器控制引脚
AIN GP26 光敏电阻控制引脚
IRM GP28 红外接收控制引脚

详细硬件设计见 电路原理图

Template:Pico-C-SDK-Manual

Template:Pico-MicroPython-Manual