在启动我的系统时,我们如何切换GPIO

发布于 2025-02-06 16:20:42 字数 124 浏览 3 评论 0原文

在我的董事会工作时,我想了解启动的状态。我试图研究许多文章,但在启动并检测启动状态的同时,就像Raspberry-Pi上的绿色LED眨眼一样,没有得到任何结论。我也想为董事会做同样的事情,任何参考文献都会有所帮助。 预先感谢您的帮助。

while working on my board I want to get to know the status of the bootup. I tried to look into many articles but didn't get any conclusion on how to toggle the GPIO led while booting up and detect the bootup status just like green led blinks on the Raspberry-pi. I too want to do the same for my board any references will be helpful.
Thank you in advance for your help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

葬花如无物 2025-02-13 16:20:42

它运行良好,我能够按照我们需要在位置

/lib/systemd/system/

为根用户创建服务的需求执行它,我们可以创建服务,并

 [Unit]
 Description = Blink my LED
 DefaultDependencies=no

 [Service]
 ExecStart=/usr/bin/python3 /<your location>/boot_status.py
 
 [Install]
 WantedBy=sysinit.target

可以参考链接以获取更多详细信息:

https://www.freedesktop.org/software/systemd/man/systemd.special.html

it is working fine and I am able to execute it as per the requirement we need to create the service at the location

/lib/systemd/system/

being a root user we can create the service and

 [Unit]
 Description = Blink my LED
 DefaultDependencies=no

 [Service]
 ExecStart=/usr/bin/python3 /<your location>/boot_status.py
 
 [Install]
 WantedBy=sysinit.target

can refer link for more details :

https://www.freedesktop.org/software/systemd/man/systemd.special.html
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文