爱意满满的作品展示区。
gleport

发布一个玩具:在软件上模拟 led 风扇

  •  1
     
  •   gleport · Mar 25, 2015 · 3888 views
    This topic created in 4108 days ago, the information mentioned may be changed or developed.

    缺省跑 nyancat.
    Github repo: https://github.com/hmgle/led_fan
    8 replies    2015-03-31 22:18:10 +08:00
    wdongxv
        1
    wdongxv  
       Mar 25, 2015 via iPhone
    太尼玛好玩了,马上玩一下
    imeoer
        2
    imeoer  
       Mar 26, 2015
    好好玩 要是能直接在terminal跑就更酷了
    gleport
        3
    gleport  
    OP
       Mar 26, 2015
    @imeoer 嗯, 不过直接在 termina 上模拟 led 风扇有两个难点呢: 一是很难精确控制每个像素, 二是渲染的时钟不能精确控制.
    直接在 termina 上运行的彩虹猫是有的: https://github.com/klange/nyancat
    led_fan 里面的 nyancat.h 也是由此修改衍生的~
    imeoer
        4
    imeoer  
       Mar 28, 2015
    @gleport 效果很赞,不过我跑了一会风扇真的开始转了 233
    gleport
        5
    gleport  
    OP
       Mar 28, 2015
    @imeoer haha~ 现在为了显示效果好一点默认用了 200 fps 的帧率呢, 所以 CPU 占用率高.
    不过不要紧, 接下来考虑接受一些常用的传入的参数, 比如帧率, 起始角度, 旋转周期, 扇叶数等 233
    tobyxdd
        6
    tobyxdd  
       Mar 29, 2015
    https://github.com/tobyxdd/led_fan
    做了个粗糙的Windows移植= =
    Solitudechn
        7
    Solitudechn  
       Mar 31, 2015 via Android
    什么终端?很好看的样子?还是程序界面?
    gleport
        8
    gleport  
    OP
       Mar 31, 2015
    @Solitudechn 界面是用 SDL2 渲染的.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5712 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 93ms · UTC 01:48 · PVG 09:48 · LAX 18:48 · JFK 21:48
    ♥ Do have faith in what you're doing.