diff --git a/Documents/Resources/资源网站.md b/Documents/Resources/资源网站.md index 2ccf230..ece4ef3 100644 --- a/Documents/Resources/资源网站.md +++ b/Documents/Resources/资源网站.md @@ -68,6 +68,7 @@ - [在线转换文件](https://onlineconvertfree.com/zh/) - [RF Tools](https://rf-tools.com) - [LC 滤波器设计工具](https://rf-tools.com/lc-filter/) +- [wokwi 开源硬件仿真(树莓派、Arduino等)](https://wokwi.com/) ## 2. 镜像网站 diff --git a/Ecology/01Studio/pyBoard/pyBoard_STM32F405_资源总结.md b/Ecology/01Studio/pyBoard/pyBoard_STM32F405_资源总结.md new file mode 100644 index 0000000..f34e892 --- /dev/null +++ b/Ecology/01Studio/pyBoard/pyBoard_STM32F405_资源总结.md @@ -0,0 +1,7 @@ +# pyBoard (STM32F405) 资源总结 + +- [pyBoard (STM32F405) 资源下载](https://download.01studio.cc/zh_CN/latest/micropython/pyboard/pyboard.html) +- [MicroPython 文档(中文)](https://docs.01studio.cc/index.html),分为 + - Python 标准库和 micro 库 + - MicroPython 特定库 + - 各类开发板专用库 diff --git a/Software/System/RaspberryPi/Raspberry_Pi_4B_Ubuntu_开启_NFS.md b/Ecology/RaspberryPI/Raspberry_Pi_4B/Raspberry_Pi_4B_Ubuntu_开启_NFS.md similarity index 100% rename from Software/System/RaspberryPi/Raspberry_Pi_4B_Ubuntu_开启_NFS.md rename to Ecology/RaspberryPI/Raspberry_Pi_4B/Raspberry_Pi_4B_Ubuntu_开启_NFS.md diff --git a/Software/System/RaspberryPi/Raspberry_Pi_4B_Ubuntu_开启_SSH.md b/Ecology/RaspberryPI/Raspberry_Pi_4B/Raspberry_Pi_4B_Ubuntu_开启_SSH.md similarity index 100% rename from Software/System/RaspberryPi/Raspberry_Pi_4B_Ubuntu_开启_SSH.md rename to Ecology/RaspberryPI/Raspberry_Pi_4B/Raspberry_Pi_4B_Ubuntu_开启_SSH.md diff --git a/Software/System/RaspberryPi/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04.md b/Ecology/RaspberryPI/Raspberry_Pi_4B/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04.md similarity index 100% rename from Software/System/RaspberryPi/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04.md rename to Ecology/RaspberryPI/Raspberry_Pi_4B/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04.md diff --git a/Software/System/RaspberryPi/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04.md b/Ecology/RaspberryPI/Raspberry_Pi_4B/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04.md similarity index 100% rename from Software/System/RaspberryPi/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04.md rename to Ecology/RaspberryPI/Raspberry_Pi_4B/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04.md diff --git a/Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/001.png b/Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/001.png similarity index 100% rename from Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/001.png rename to Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/001.png diff --git a/Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/002.png b/Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/002.png similarity index 100% rename from Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/002.png rename to Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/002.png diff --git a/Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/003.png b/Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/003.png similarity index 100% rename from Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/003.png rename to Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/003.png diff --git a/Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/004.png b/Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/004.png similarity index 100% rename from Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/004.png rename to Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/004.png diff --git a/Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/005.png b/Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/005.png similarity index 100% rename from Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/005.png rename to Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/005.png diff --git a/Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/006.png b/Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/006.png similarity index 100% rename from Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/006.png rename to Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/006.png diff --git a/Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/007.png b/Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/007.png similarity index 100% rename from Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/007.png rename to Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/007.png diff --git a/Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/008.jpeg b/Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/008.jpeg similarity index 100% rename from Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/008.jpeg rename to Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/008.jpeg diff --git a/Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/009.jpeg b/Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/009.jpeg similarity index 100% rename from Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/009.jpeg rename to Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/009.jpeg diff --git a/Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/010.jpeg b/Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/010.jpeg similarity index 100% rename from Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/010.jpeg rename to Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/010.jpeg diff --git a/Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/011.jpeg b/Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/011.jpeg similarity index 100% rename from Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/011.jpeg rename to Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/011.jpeg diff --git a/Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/012.jpeg b/Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/012.jpeg similarity index 100% rename from Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/012.jpeg rename to Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Desktop_21.04/012.jpeg diff --git a/Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/001.png b/Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/001.png similarity index 100% rename from Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/001.png rename to Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/001.png diff --git a/Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/002.png b/Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/002.png similarity index 100% rename from Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/002.png rename to Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/002.png diff --git a/Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/003.png b/Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/003.png similarity index 100% rename from Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/003.png rename to Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/003.png diff --git a/Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/004.png b/Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/004.png similarity index 100% rename from Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/004.png rename to Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/004.png diff --git a/Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/005.png b/Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/005.png similarity index 100% rename from Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/005.png rename to Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/005.png diff --git a/Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/006.png b/Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/006.png similarity index 100% rename from Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/006.png rename to Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/006.png diff --git a/Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/007.png b/Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/007.png similarity index 100% rename from Software/System/RaspberryPi/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/007.png rename to Ecology/RaspberryPI/Raspberry_Pi_4B/img/Raspberry_Pi_4B_安装_Ubuntu_Server_20.04/007.png diff --git a/Ecology/RaspberryPI/Raspberry_Pi_Pico/Raspberry_Pi_Pico_资源总结.md b/Ecology/RaspberryPI/Raspberry_Pi_Pico/Raspberry_Pi_Pico_资源总结.md new file mode 100644 index 0000000..c79bfea --- /dev/null +++ b/Ecology/RaspberryPI/Raspberry_Pi_Pico/Raspberry_Pi_Pico_资源总结.md @@ -0,0 +1,72 @@ +# Raspberry Pi Pico 资源总结 + +## API、Demo 及网络资源 + +- [Raspberry Pi Pico and Pico W 官网说明及资源](https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html) +- [MicroPython documentation](https://docs.micropython.org/en/latest/index.html):分为 + - Python standard libraries and micro-libraries + - MicroPython-specific libraries + - Port-specific libraries:其中 rp2 为 Raspberry Pi Pico 的 Port-specific library. +- [MicroPython 文档(中文版)](http://www.86x.org/en/latet/index-2.html) + +## 特定功能代码段 + +### 测量 PWM 周期和占空比 + +```python +from machine import Pin, PWM +from rp2 import PIO, StateMachine, asm_pio +import time + +@rp2.asm_pio(set_init=rp2.PIO.IN_LOW, autopush=True, push_thresh=32) +def period(): + wrap_target() + set(x, 0) + wait(0, pin, 0) # Wait for pin to go low + wait(1, pin, 0) # Low to high transition + label('low_high') + jmp(x_dec, 'next') [1] # unconditional + label('next') + jmp(pin, 'low_high') # while pin is high + label('low') # pin is low + jmp(x_dec, 'nxt') + label('nxt') + jmp(pin, 'done') # pin has gone high: all done + jmp('low') + label('done') + in_(x, 32) # Auto push: SM stalls if FIFO full + wrap() + +@rp2.asm_pio(set_init=rp2.PIO.IN_LOW, autopush=True, push_thresh=32) +def mark(): + wrap_target() + set(x, 0) + wait(0, pin, 0) # Wait for pin to go low + wait(1, pin, 0) # Low to high transition + label('low_high') + jmp(x_dec, 'next') [1] # unconditional + label('next') + jmp(pin, 'low_high') # while pin is high + in_(x, 32) # Auto push: SM stalls if FIFO full + wrap() + +pin16 = Pin(16, Pin.IN, Pin.PULL_UP) +sm0 = rp2.StateMachine(0, period, in_base=pin16, jmp_pin=pin16) +sm0.active(1) +sm1 = rp2.StateMachine(1, mark, in_base=pin16, jmp_pin=pin16) +sm1.active(1) + +pwm = PWM(Pin(17)) +pwm.freq(1000) +pwm.duty_u16(0xffff // 3) + +# Clock is 125MHz. 3 cycles per iteration, so unit is 24.0ns +def scale(v): + return (1 + (v ^ 0xffffffff)) * 24e-6 # Scale to ms + +while True: + period = scale(sm0.get()) + mark = scale(sm1.get()) + print(period, mark, mark/period) + time.sleep(0.2) +``` diff --git a/Software/System/RaspberryPi/img/树梅派简介/001.png b/Ecology/RaspberryPI/img/树莓派简介/001.png similarity index 100% rename from Software/System/RaspberryPi/img/树梅派简介/001.png rename to Ecology/RaspberryPI/img/树莓派简介/001.png diff --git a/Software/System/RaspberryPi/img/树梅派简介/002.png b/Ecology/RaspberryPI/img/树莓派简介/002.png similarity index 100% rename from Software/System/RaspberryPi/img/树梅派简介/002.png rename to Ecology/RaspberryPI/img/树莓派简介/002.png diff --git a/Software/System/RaspberryPi/树梅派简介.md b/Ecology/RaspberryPI/树梅派简介.md similarity index 100% rename from Software/System/RaspberryPi/树梅派简介.md rename to Ecology/RaspberryPI/树梅派简介.md diff --git a/Ecology/WaveShare/RP2040_LCD_096/RP2040_LCD_096_资源总结.md b/Ecology/WaveShare/RP2040_LCD_096/RP2040_LCD_096_资源总结.md new file mode 100644 index 0000000..827c6a5 --- /dev/null +++ b/Ecology/WaveShare/RP2040_LCD_096/RP2040_LCD_096_资源总结.md @@ -0,0 +1,4 @@ +# RP2040 LCD 096 资源总结 + +- [RP2040-LCD-0.96](https://www.waveshare.net/wiki/RP2040-LCD-0.96#LCD1602_I2C_.E5.AE.9E.E9.AA.8C) +- [微雪 Wiki 主页](https://www.waveshare.net/wiki/Main_Page)