首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > this project consists in a modifyed library from Balázs Kelemen Thank You ;)

this project consists in a modifyed library from Balázs Kelemen Thank You ;)

  • 资源大小:19.50 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

This library is intended to facilitate the creation of bar graphs for Arduino ... It is very simple to use. This is a simple example: include include byte sensorPin = 0; // -- value for this example LiquidCrystal lcd(12, 11, 5, 4, 3, 2); // -- creating LCD instance LcdBarGraph lbg(&lcd); // -- creating bar graph void setup(){ // -- initializing the LCD lcd.begin(2, 16); lcd.clear(); // -- do some delay: some time I"ve got broken visualization delay(100); lcd.setCursor(2, 0); lcd.print("analog read"); } void loop() { lcd.setCursor(0, 1); // -- draw bar graph from the analog value readed lbg.drawValue( analogRead(sensorPin), 1024, 10); // lbg.drawValue(minimum, max, bargraph columns); // -- do some delay: frequent draw may cause broken visualization delay(100); }

文 件 列 表

LcdBarGraph-v1.3
examples
gpl.txt
keywords.txt
LcdBarGraph.cpp
LcdBarGraph.h
VIP VIP
0.173465s