mirror of
https://github.com/s00500/SimpleExpressions
synced 2024-12-04 04:21:27 +00:00
Update SimpleExpressions.cpp
This commit is contained in:
parent
5574f6f732
commit
6d19e4bd02
@ -29,7 +29,7 @@ void SimpleExpressionsClass::initBuzzer(int aBuzzerPin) {
|
|||||||
//-- MOUTHS ----------------------------------------//
|
//-- MOUTHS ----------------------------------------//
|
||||||
///////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
void SimpleExpressionsClass::writeMouth(char mouthName[], int r, int g, int b) {
|
void SimpleExpressionsClass::writeMouth(const char mouthName[], int r, int g, int b) {
|
||||||
int number = -1;
|
int number = -1;
|
||||||
for(int i = 0; i < frameCount; i++){
|
for(int i = 0; i < frameCount; i++){
|
||||||
if(strncmp(shapes[i].name, mouthName, 20) == 0) {
|
if(strncmp(shapes[i].name, mouthName, 20) == 0) {
|
||||||
@ -54,7 +54,7 @@ void SimpleExpressionsClass::printMouth(int number, int r, int g, int b) {
|
|||||||
clearPixels();
|
clearPixels();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SimpleExpressionsClass::writeMouth(char mouthName[] ) {
|
void SimpleExpressionsClass::writeMouth(const char mouthName[] ) {
|
||||||
int number = -1;
|
int number = -1;
|
||||||
for(int i = 0; i < colorFrameCount; i++){
|
for(int i = 0; i < colorFrameCount; i++){
|
||||||
if(strncmp(shapes[i].name, mouthName, 20) == 0) {
|
if(strncmp(shapes[i].name, mouthName, 20) == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user