Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    D1添加LED_GPIO灯出现的问题

    MR Series
    2
    3
    1624
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      yaoxiaoyao LV 5 last edited by

      1、在板级设备树根节点添加三个LED灯
      79f3d4db-78d4-45ac-9401-c81df4bef1f5-image.png
      2、在内核添加LEDS-GPIO驱动支持
      Device Drivers --->
      [ * ]LED Support --->
      < * > LED Class Support
      < * > LED Support for GPIO connected LEDs
      c6a16e20-4f3c-4530-89bb-909ea238d4bb-image.png
      9d2a74b5-1a46-4bed-8a26-2857fafa3026-image.png

      3、编译、打包
      确定已经编译
      e9998ae9-ebe4-499d-a842-81389612b82e-image.png
      4、烧录固件,启动
      72ef91c5-4046-44a1-9185-6bd8b6745c5e-image.png
      没有LED设备

      180a864d-845f-4013-bf96-62edf5db8802-image.png
      可是在这个路径下生成了一堆文件,好像不是想要的那种,没法用
      24fa966b-007e-4f8e-b925-062b716f9813-image.png

      1 Reply Last reply Reply Quote Share 0
      • Y
        yaoxiaoyao LV 5 last edited by

        解决了 引脚占用了

        M 1 Reply Last reply Reply Quote Share 0
        • M
          memory LV 7 @yaoxiaoyao last edited by

          @yaoxiaoyao
          感谢分享宝贵经验👊

          1 Reply Last reply Reply Quote Share 0
          • 1 / 1
          • First post
            Last post

          Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

          行为准则 | 用户协议 | 隐私权政策