mirror of
https://github.com/s00500/SimpleExpressions
synced 2025-06-19 21:50:40 +00:00
Moving example
This commit is contained in:
26
examples/expressions/expressions.ino
Normal file
26
examples/expressions/expressions.ino
Normal file
@ -0,0 +1,26 @@
|
||||
#include <SimpleExpressions.h>
|
||||
|
||||
void setup() {
|
||||
Serial.begin(115200);
|
||||
delay(2000);
|
||||
SimpleExpressions.init(13, 17);
|
||||
SimpleExpressions.clearMouth();
|
||||
|
||||
for (int i = 0; i < 18; i++) {
|
||||
Serial.println(i);
|
||||
SimpleExpressions.printMouth(i, 30, 0, 0);
|
||||
SimpleExpressions.playSound(i);
|
||||
delay(1000);
|
||||
}
|
||||
}
|
||||
|
||||
void loop() {
|
||||
SimpleExpressions.writeMouth("cross", 30, 0, 0);
|
||||
delay(1000);
|
||||
SimpleExpressions.writeMouth("hook", 0, 30, 0);
|
||||
delay(1000);
|
||||
SimpleExpressions.writeMouth("leftarrow", 0, 15, 30);
|
||||
delay(1000);
|
||||
SimpleExpressions.writeMouth("rightarrow", 0, 15, 30);
|
||||
delay(1000);
|
||||
}
|
Reference in New Issue
Block a user