#include <LCD5110_Basic.h> LCD5110 LCD(8,9,10,11,12); extern uint8_t SmallFont[]; extern uint8_t MediumNumbers[]; extern uint8_t BigNumbers[]; long R = 0; void setup() { LCD.InitLCD(); } void loop() { LCD.setFont(SmallFont); LCD.print("ArduBlock", 5, 10); LCD.setFont(SmallFont); LCD.printNumI(long(R), 5, 20, 2, '0'); LCD.setFont(MediumNumbers); LCD.printNumI(long(R), 5, 30, 2, '0'); LCD.setFont(BigNumbers); LCD.printNumI(long(R), 30, 20, 2, '0'); delay(1000); R = R + 1; }
Открыть пример: Online ArduBlock
Видеоурок: