大更阿
上代码!
/*!
* MindPlus
* mpython
*
*/
#include <MPython.h>
#include <DFRobot_NeoPixel.h>
// 动态变量
volatile float mind_n_id;
// 函数声明
void DF_ChuShiHua();
void DF_RGB();
void DF_ChangGe();
void DF_SOS();
void DF_ZhuYe();
// 静态常量
const uint8_t imageMatrix[][650] = {
{0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x20,0x0,0x1,0x2,0x0,0x0,0x0,0xc,0x64,0xcc,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0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}
};
// 创建对象
DFRobot_NeoPixel neoPixel_P0;
// 主程序开始
void setup() {
mPython.begin();
DF_ChuShiHua();
DF_ZhuYe();
}
void loop() {
}
// 自定义函数
void DF_ChuShiHua() {
buzz.play(ODE, OnceInBackground);
display.setCursorLine(1);
display.printLine("正在初始化.");
neoPixel_P0.begin(P0, 7);
delay(500);
display.fillInLine(1, 0);
display.setCursorLine(1);
display.printLine("正在初始化..");
neoPixel_P0.setBrightness(255);
delay(500);
display.fillInLine(1, 0);
display.setCursorLine(1);
display.printLine("正在初始化...");
neoPixel_P0.clear();
delay(500);
display.fillInLine(1, 0);
display.setCursorLine(1);
display.printLine("正在初始化.");
delay(500);
display.fillInLine(1, 0);
display.setCursorLine(1);
display.printLine("正在初始化..");
delay(500);
display.fillInLine(1, 0);
display.setCursorLine(1);
display.printLine("正在初始化...");
display.fillInLine(1, 0);
delay(1000);
display.drawImage(24, 7, 80, 50, imageMatrix[0]);
delay(12000);
display.fillScreen(0);
delay(1000);
}
void DF_RGB() {
display.fillScreen(0);
buzz.stop();
display.drawImage(14, 7, 100, 50, imageMatrix[1]);
delay(1000);
while (!(buttonAB.isPressed())) {
if ((touchPadP.isTouched())) {
neoPixel_P0.setRangeColor(0, 0, 0xFFFFFF);
}
else if ((touchPadY.isTouched())) {
neoPixel_P0.setRangeColor(1, 1, 0xFFFFFF);
}
else if ((touchPadT.isTouched())) {
neoPixel_P0.setRangeColor(2, 2, 0xFFFFFF);
}
else if ((touchPadH.isTouched())) {
neoPixel_P0.setRangeColor(3, 3, 0xFFFFFF);
}
else if ((touchPadO.isTouched())) {
neoPixel_P0.setRangeColor(4, 4, 0xFFFFFF);
}
else if ((touchPadN.isTouched())) {
neoPixel_P0.setRangeColor(5, 5, 0xFFFFFF);
}
else if ((buttonA.isPressed())) {
neoPixel_P0.setRangeColor(6, 6, 0xFFFFFF);
}
else {
neoPixel_P0.clear();
}
yield();
}
display.fillScreen(0);
DF_ZhuYe();
}
void DF_ChangGe() {
display.fillScreen(0);
display.drawImage(14, 7, 100, 50, imageMatrix[2]);
delay(1000);
while (!(buttonAB.isPressed())) {
if ((touchPadP.isTouched())) {
buzz.play(DADADADUM, OnceInBackground);
}
else if ((touchPadY.isTouched())) {
buzz.play(ENTERTAINER, OnceInBackground);
}
else if ((touchPadT.isTouched())) {
buzz.play(PRELUDE, OnceInBackground);
}
else if ((touchPadH.isTouched())) {
buzz.play(ODE, OnceInBackground);
}
else if ((touchPadO.isTouched())) {
buzz.play(NYAN, OnceInBackground);
}
else if ((touchPadN.isTouched())) {
buzz.play(RINGTONE, OnceInBackground);
}
else if ((buttonA.isPressed())) {
buzz.play(FUNK, OnceInBackground);
}
else {
}
yield();
}
display.fillScreen(0);
DF_ZhuYe();
}
void DF_SOS() {
display.fillScreen(0);
display.drawImage(24, 7, 80, 50, imageMatrix[3]);
if ((mind_n_id==0)) {
delay(500);
neoPixel_P0.setRangeColor(0, 6, 0xFFFFFF);
delay(100);
neoPixel_P0.clear();
delay(500);
neoPixel_P0.setRangeColor(0, 6, 0xFFFFFF);
delay(100);
neoPixel_P0.clear();
delay(500);
neoPixel_P0.setRangeColor(0, 6, 0xFFFFFF);
delay(100);
neoPixel_P0.clear();
delay(1000);
neoPixel_P0.setRangeColor(0, 6, 0xFFFFFF);
delay(700);
neoPixel_P0.clear();
delay(500);
neoPixel_P0.setRangeColor(0, 6, 0xFFFFFF);
delay(700);
neoPixel_P0.clear();
delay(500);
neoPixel_P0.setRangeColor(0, 6, 0xFFFFFF);
delay(700);
neoPixel_P0.clear();
delay(1000);
neoPixel_P0.setRangeColor(0, 6, 0xFFFFFF);
delay(100);
neoPixel_P0.clear();
delay(500);
neoPixel_P0.setRangeColor(0, 6, 0xFFFFFF);
delay(100);
neoPixel_P0.clear();
delay(500);
neoPixel_P0.setRangeColor(0, 6, 0xFFFFFF);
delay(100);
neoPixel_P0.clear();
if ((touchPadT.isTouched())) {
DF_ZhuYe();
}
else {
delay(1500);
DF_SOS();
}
}
else {
DF_ZhuYe();
}
}
void DF_ZhuYe() {
neoPixel_P0.clear();
display.fillScreen(0);
buzz.play(RINGTONE, OnceInBackground);
delay(1000);
display.drawImage(14, 7, 100, 50, imageMatrix[4]);
while (1) {
if ((touchPadP.isTouched())) {
DF_RGB();
}
else if ((touchPadY.isTouched())) {
DF_ChangGe();
}
else if ((touchPadT.isTouched())) {
mind_n_id = 0;
DF_SOS();
}
else {
}
yield();
}
}