Skip to content

control display for WioLTE. WioLTEで動くようにしました。

License

Notifications You must be signed in to change notification settings

dotstudio/Grove_LED_Bar_WioLTE

 
 

Repository files navigation

インストール

  • ここからzipファイルをDL
  • スケッチ -> ライブラリをインクルード -> .zip形式のライブラリをインストール
  • DLしたzipファイルを選択

使い方

サンプルコードの#include <Grove_LED_Bar.h>になってる箇所を#include <Grove_LED_Bar_WioLTE.h>に変更すると動きます。

次のコードの場合、D38ポートに配線してます。

#include <WioCellLibforArduino.h>
#include <Grove_LED_Bar_WioLTE.h> //変更点

Grove_LED_Bar bar(WIO_D39, WIO_D38, 0);  // Clock pin, Data pin, Orientation

void setup(){
  bar.begin();
}

void loop(){
  for (int i = 0; i <= 10; i++){
    bar.setLevel(i);
    delay(100);
  }
}

このサンプルだと↓のGIFのような挙動をしてくれます。

以下はフォーク元のREADME

Grove LED Bar

image

Grove LED Bar v2.0

Grove LED Bar is comprised of a 10 segment LED gauge bar and an MY9221 LED driver. It can be used as a indicator for remaining battery life, voltage, water level, music volume or other values that require a gradient display. There are 10 discrete LED bars in the LED bar graph: one red, one yellow, one light green, and the rest green.

For more information, please refer to the wiki.


This software is written by Frankie Chu for seeed studio
and is licensed under The MIT License. Check License.txt for more information.

Contributing to this software is warmly welcomed. You can do this basically by
forking, committing modifications and then pulling requests (follow the links above
for operating guide). Adding change log and your contact into file header is encouraged.
Thanks for your contribution.

Seeed Studio is an open hardware facilitation company based in Shenzhen, China.
Benefiting from local manufacture power and convenient global logistic system,
we integrate resources to serve new era of innovation. Seeed also works with
global distributors and partners to push open hardware movement.

Analytics

About

control display for WioLTE. WioLTEで動くようにしました。

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 100.0%