Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • 社区主页

    发现D1哪吒开发板上面有WS2812灯带外设LEDC,测试了一下,真不戳

    D1-H/D1s
    3
    3
    78
    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.
    • U
      uuuuid LV 5 last edited by

      78ae064da93a2eeb375102622a5522b.png

      5a87ee507a8e5f6b415f3340bc95710.png

      驱动上面定义了12个,实际板子上只有一个U13,理论上可以挂2048个,可以做一个16*128的点阵彩屏玩玩了。

      从 LEDC PIN 端开始数,第一个 LED 的编号为 0,沿着远离 PIN 端的方向 LED 的编号依次递增。
      例如,调节第 0 个 LED 的颜色为白光且最亮,操作如下:

      echo 255 > /sys/class/leds/sunxi_led0r/brightness
      echo 255 > /sys/class/leds/sunxi_led0g/brightness
      echo 255 > /sys/class/leds/sunxi_led0b/brightness

      r 代表设置红光,g 代表设置绿光,b 代表设置蓝光。

      1 Reply Last reply Reply Quote Share 0
      • BedRock
        BedRock LV 6 last edited by

        目前测试超过32个就会 fifo 异常🙄

        1 Reply Last reply Reply Quote Share 0
        • tigger
          tigger LV 7 last edited by

          @bedrock 啊这。。。比没有好。

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

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

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