Lese schreib LED für SD Karte Zero2w
Hallo,
ich habe ein Raspberry Zero 2 w mit einem Nintendo Gehäuse und RetoPie am laufen,
wie kann ich eine LED (Grün) so ansteuern die mir den Lese und Schreibzugriff auf die SD Karte anzeigt ?
Ich bin ein absoluter Anfänger was Programmierung und Pi betrifft.
Gruß
JustFun
ich habe ein Raspberry Zero 2 w mit einem Nintendo Gehäuse und RetoPie am laufen,
wie kann ich eine LED (Grün) so ansteuern die mir den Lese und Schreibzugriff auf die SD Karte anzeigt ?
Ich bin ein absoluter Anfänger was Programmierung und Pi betrifft.
Gruß
JustFun
- aBUGSworstnightmare
- Posts: 13432
- Joined: Tue Jun 30, 2015 1:35 pm
Re: Lese schreib LED für SD Karte Zero2w
https://github.com/raspberrypi/linux/bl ... verlay.dts
Einfach das vorhandene Overlay für GPIO-LED verwenden. der Trigger sollte 'disk-activity' sein https://github.com/raspberrypi/linux/bl ... n.yaml#L91
um also eine LED an GPIO27 als Activity LED zu verwenden sollte nachstehende Zeile am Ende der config.txt eingefügt werden.
natürlich kann jeder freie GPIO verwendet werden, also ggf. anpassen.
Einfach das vorhandene Overlay für GPIO-LED verwenden. der Trigger sollte 'disk-activity' sein https://github.com/raspberrypi/linux/bl ... n.yaml#L91
um also eine LED an GPIO27 als Activity LED zu verwenden sollte nachstehende Zeile am Ende der config.txt eingefügt werden.
Code: Select all
dtoverlay=gpio-led,gpio=27,label=mydiskact,trigger=disk-activity
Jump to
- Community
- General discussion
- Announcements
- Other languages
- Deutsch
- Español
- Français
- Italiano
- Nederlands
- 日本語
- Polski
- Português
- Русский
- Türkçe
- User groups and events
- Raspberry Pi Official Magazine
- Using the Raspberry Pi
- Beginners
- Troubleshooting
- Advanced users
- Assistive technology and accessibility
- Education
- Picademy
- Teaching and learning resources
- Staffroom, classroom and projects
- Astro Pi
- Mathematica
- High Altitude Balloon
- Weather station
- Programming
- C/C++
- Java
- Python
- Scratch
- Other programming languages
- Windows 10 for IoT
- Wolfram Language
- Bare metal, Assembly language
- Graphics programming
- OpenGLES
- OpenVG
- OpenMAX
- General programming discussion
- Projects
- Networking and servers
- Automation, sensing and robotics
- Graphics, sound and multimedia
- Other projects
- Media centres
- Gaming
- AIY Projects
- Hardware and peripherals
- Camera board
- Compute Module
- Official Display
- HATs and other add-ons
- Device Tree
- Interfacing (DSI, CSI, I2C, etc.)
- Keyboard computers (400, 500, 500+)
- Raspberry Pi Pico
- General
- SDK
- MicroPython
- Other RP2040 boards
- Zephyr
- Rust
- AI Accelerator
- AI Camera - IMX500
- Hailo
- Software
- Raspberry Pi OS
- Raspberry Pi Connect
- Raspberry Pi Desktop for PC and Mac
- Beta testing
- Other
- Android
- Debian
- FreeBSD
- Gentoo
- Linux Kernel
- NetBSD
- openSUSE
- Plan 9
- Puppy
- Arch
- Pidora / Fedora
- RISCOS
- Ubuntu
- Ye Olde Pi Shoppe
- For sale
- Wanted
- Off topic
- Off topic discussion