简体   繁体   English

Beaglebone black gpio 引脚输出不符合预期,LED 闪烁程序

[英]Beaglebone black gpio pin out not as expected, LED blink program

Im follwoing this guide: https://www.teachmemicro.com/beaglebone-black-blink-led-using-c/ And when connecting at P9_13 i do not get any LED Blinking.我正在关注本指南: https://www.teachmemicro.com/beaglebone-black-blink-led-using-c/在 P9_13 连接时,我没有看到任何 LED 闪烁。 ( I also tried to set it manually, and can check that gpio is high, but LED is still dark). (我也试过手动设置,可以检查gpio是高电平,但是LED还是暗的)。

I move the right-hand side wire (green) from the breadboard to P9_2 and P9_4 and the LED light up confirming that the wiring is correct.我将右侧电线(绿色)从面包板移至 P9_2 和 P9_4,LED 亮起确认接线正确。 (according to this: https://vadl.github.io/beagleboneblack/2016/07/29/setting-up-bbb-gpio that should be VDD_3V3 and SYS_5V). (根据这个: https://vadl.github.io/beagleboneblack/2016/07/29/setting-up-bbb-gpio应该是 VDD_3V3 和 SYS_5V)。 If i move it to P9_5 the LED does NOT light up, is there no power here?如果我把它移到 P9_5,LED 不亮,这里没有电吗?

P9_13 as used in the guide is UART4_TXD, is that the one I'm supposed to use for LED blinking following this tutorial?指南中使用的 P9_13 是 UART4_TXD,这是我应该在本教程之后用于 LED 闪烁的那个吗?

The guide actually is referencing P9, while shematic is according to P8.指南实际上是参考P9,而shematic是根据P8。

And in addition, the program should use gpio26 (not gpio23) if using P8 Header (Atleast for my board).此外,如果使用 P8 Header(我的主板至少),程序应该使用 gpio26(不是 gpio23)。

UART is used for serial commnunication, so i guess that is not a general purpose io.... Anyway, question solved after realizing this:) UART 用于串行通信,所以我猜这不是通用的 io ....无论如何,意识到这一点后问题解决了:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM