Created
October 4, 2016 20:58
-
-
Save Robotonics/384f8eb459f05ab024bd057cb63afcc5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "MeOrion.h" | |
MeLEDMatrix ledMx(PORT_1); | |
uint8_t Bitmap_EyesFR[16]= | |
{ | |
0x00,0x3c,0x42,0x5a,0x5a,0x42,0x3c,0x00,0x00,0x3c,0x42,0x5a,0x5a,0x42,0x3c,0x00 | |
}; | |
//int move_times = sizeof(string_data)*6; | |
uint8_t Bitmap_EyesTR[16]= | |
{ | |
0x00,0x3c,0x42,0x42,0x72,0x72,0x3c,0x00,0x00,0x3c,0x42,0x42,0x72,0x72,0x3c,0x00 | |
}; | |
uint8_t Bitmap_EyesBlink[16]= | |
{ | |
0x00,0x3c,0x72,0x7a,0x7a,0x72,0x3c,0x00,0x00,0x3c,0x72,0x7a,0x7a,0x72,0x3c,0x00 | |
}; | |
uint8_t Bitmap_EyesFR1[16]= | |
{ | |
0x1e,0xa1,0xa7,0xa7,0xa1,0xa1,0x1e,0x00,0x00,0x1e,0xa1,0xa1,0xa7,0xa7,0xa1,0x1e | |
}; | |
uint8_t Bitmap_EyesFR2[16]= | |
{ | |
0x3e,0x40,0x46,0x46,0x46,0x40,0x3e,0x00,0x00,0x3e,0x40,0x46,0x46,0x46,0x40,0x3e | |
}; | |
uint8_t Bitmap_EyesBlink2[16]= | |
{ | |
0x3e,0x7c,0x7e,0x7e,0x7e,0x7c,0x3e,0x00,0x00,0x3e,0x7c,0x7e,0x7e,0x7e,0x7c,0x3e | |
}; | |
uint8_t Bitmap_Logo[16]= | |
{ | |
0x00,0x00,0x00,0x7e,0x81,0x81,0xbd,0xa9,0xa9,0x95,0x81,0x81,0x7e,0x00,0x00,0x00 | |
}; | |
uint8_t Bitmap_2016[16]= | |
{ | |
0x00,0x4f,0x49,0x79,0x00,0x7f,0x41,0x7f,0x00,0x7f,0x00,0x3e,0x49,0x49,0x06,0x00 | |
}; | |
uint8_t Bitmap_Face[16]= | |
{ | |
0xff,0xc3,0x81,0x00,0x64,0x62,0x01,0x0d,0x0d,0x01,0x62,0x64,0x00,0x81,0xc3,0xff | |
}; | |
void setup() | |
{ | |
ledMx.setBrightness(2); | |
ledMx.setColorIndex(1); | |
} | |
char *s = "OO"; | |
void loop() | |
{ | |
// ledMx.setColorIndex(1); | |
int b=random(1000,10000); | |
ledMx.drawBitmap(0, 0, sizeof(Bitmap_EyesFR2), Bitmap_EyesFR2); | |
delay(b); | |
ledMx.drawBitmap(0, 0, sizeof(Bitmap_EyesBlink2), Bitmap_EyesBlink2); | |
delay(200); | |
//ledMx.setColorIndex(0); | |
//ledMx.drawBitmap(0, 0, sizeof(Bitmap_Face), Bitmap_Face); | |
//delay(1800); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment