#include <LiquidCrystal.h>
#include "LCDController.h"
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
const int ledPin = 6; // светодиод на выводе с ШИМ
int potValue = 0; // значение от потенциометра
int brightness = 0; // конвертируем в яркость
int progress = 0; // индикатор прогресса
//Пользовательский символ
byte pBar[8] =
{
B11111,
B11111,
B11111,
B11111,
B11111,
B11111,
B11111,
};
LCDController lcdController;
void setup()
{
Serial.begin(9600);
lcd.begin(16, 2);
lcd.createChar(0, pBar);
lcd.clear();
lcd.print(" LED Brightness");
}
void loop()
{
lcdController.Update();
}