1
0
mirror of https://github.com/s00500/SimpleExpressions synced 2024-11-27 07:31:39 +00:00
SimpleExpressions/examples/expressions/expressions.ino

29 lines
652 B
Arduino
Raw Normal View History

2017-11-20 16:49:55 +00:00
#include <SimpleExpressions.h>
2017-12-01 12:51:36 +00:00
#define ledDataPin 13
#define beeperPin 17
2017-11-20 16:49:55 +00:00
void setup() {
2017-11-22 12:50:16 +00:00
Serial.begin(115200);
2017-12-01 12:51:36 +00:00
SimpleExpressions.init(ledDataPin, beeperPin);
2017-11-23 14:36:18 +00:00
SimpleExpressions.clearMouth();
for (int i = 0; i < 18; i++) {
Serial.println(i);
SimpleExpressions.printMouth(i, 30, 0, 0);
SimpleExpressions.playSound(i);
delay(1000);
}
2017-11-20 16:49:55 +00:00
}
void loop() {
2017-11-23 11:28:47 +00:00
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);
2017-11-20 16:49:55 +00:00
}