1
0
mirror of https://github.com/s00500/SimpleExpressions synced 2024-11-23 11:00:54 +00:00
SimpleExpressions/SimpleExpressions.h

51 lines
1.1 KiB
C++
Executable File

#ifndef SimpleExpressions_h
#define SimpleExpressions_h
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#include "Shapes.h"
#include "Sounds.h"
#define debug true
class SimpleExpressionsClass
{
public:
void init(int mouthPin, int buzzerPin);
void printMouth(int number, int r, int g, int b);
void writeMouth(char mouthName[], int r, int g, int b);
void printMouth(int number);
void writeMouth(char mouthName[]);
void clearMouth();
void writeMouthGeneric(const int mouthArray[7][3]);
void writeMouthGeneric(const bool mouthArray[7], int r, int g, int b);
//void putAnimationMouth(int anim, int index);
//-- Sounds
void _tone (float noteFrequency, long noteDuration, int silentDuration);
void bendTones (float initFrequency, float finalFrequency, float prop, long noteDuration, int silentDuration);
void playSound(int soundName);
//-- Gestures
//void playGesture(int gesture);
private:
Adafruit_NeoPixel mouth;
void clearPixels();
};
extern SimpleExpressionsClass SimpleExpressions;
#endif