mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-07-04 17:51:41 +02:00
fixed clearDisplay(), changed linebreak to \n and added basic example
This commit is contained in:
17
example/display/basic/basic/basic.ino
Normal file
17
example/display/basic/basic/basic.ino
Normal file
@ -0,0 +1,17 @@
|
||||
#include "Dezibot.h"
|
||||
|
||||
Dezibot dezibot = Dezibot();
|
||||
void setup() {
|
||||
// put your setup code here, to run once:
|
||||
dezibot.begin();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
// put your main code here, to run repeatedly:
|
||||
dezibot.display.print("Hello from\nDezibot!");
|
||||
delay(5000);
|
||||
dezibot.display.clear();
|
||||
dezibot.display.print("Bye!");
|
||||
delay(5000);
|
||||
dezibot.display.clear();
|
||||
}
|
Reference in New Issue
Block a user