所有分类
主题 主题
平台 平台
我的工作台
userHead
注册时间 [[userInfo.create_time]]
创造力 [[userInfo.creativity]]
[[userInfo.remark]]
[[d.project_title]]
articleThumb
[[d.material_name]]
timelineThumb
进入工作台
折叠
所有分类 我的工作台
展开
懂手势的党史学习机
兆 2021-06-14 15:42:09
2
1
简单

   今年迎来建党100周年, 回顾历程,我党始终与人民风雨同舟,守望相助。百年来国家发生了翻天覆地的变化,取得了举世瞩目的成就。  在百年变化中,社会发展始终紧跟党走,秉承“科学技术是第一生产力”的发展观念;从“嫦娥”探月到“天问”着陆火星,从北斗组网到5G商用,从和谐号到复兴号,国家在科技创新发展中实现了质的飞跃。

   


 

projectImage

  为纪念建党100周年,进一步了解我党光辉历程和丰功伟绩,激励广大师生和人民群众深入学习党的历史,进一步弘扬党的优良传统和发扬党的先进性,现制做“懂手势的党史学习机”。

projectImage
材料清单 材料清单
1x
掌控板、掌控宝
1x
PAJ7620U2 Gesture Sensor 手势识别传感器
1x
无源音箱小喇叭
1x
DFR0534 ProductLink Voice Module 语音模块
1x
灯带
1x
3D打印外壳

功能描述:

     1.应用讯飞语言技术将文字转为声音,并将党史学习声音存入语音模块中。

     2.手势向上挥手开启设备,向下挥手关闭设备;向左挥手跳转上一个知识点讲解,向右挥手跳转下一个知识点讲解。

  3.手势顺时针音量+,逆时针音量减;

步骤1 步骤1
设计3D外壳
projectImage
步骤2 步骤2
线路连接
projectImage
代码 代码
	                    					/*!
 * MindPlus
 * mpython
 *
 */
#include <MPython.h>
#include <SoftwareSerial.h>
#include <DFRobot_NeoPixel.h>
#include <DFRobot_SerialMp3.h>
#include <DFRobot_PAJ7620U2.h>

// 动态变量
volatile float mind_n_sound;
// 函数声明
void DF_sound(float mind_n_float);
// 静态常量
const uint8_t imageMatrix[][1024] = {
	{0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf7,0xff,0xff,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xe0,0x0,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xc0,0x0,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0x0,0x0,0x7f,0xc0,0x3,0xff,0xff,0xfc,0x0,0x3f,0xff,0xff,0xff,0xff,0xfc,0x0,0x3,0x0,0x7e,0x0,0x0,0x7f,0xff,0xe0,0x0,0x7,0xff,0xff,0xff,0xff,0xfc,0x0,0x3,0xc0,0x70,0x0,0x0,0x1f,0xff,0x80,0x0,0x0,0xff,0xff,0xff,0xff,0xfc,0x0,0x1,0xe0,0x60,0x0,0x0,0x7,0xfe,0x0,0x0,0x0,0x7f,0xff,0xff,0xff,0xfc,0x0,0x7c,0xf0,0x0,0x0,0x0,0x3,0xfc,0x0,0x0,0x0,0x1f,0xff,0xff,0xff,0xfc,0x0,0xfc,0x78,0x0,0x0,0x0,0x0,0xf0,0x0,0x0,0x0,0xf,0xff,0xff,0xff,0xf8,0x1,0xf8,0x38,0x0,0x0,0x0,0x0,0x60,0x0,0x0,0x0,0x7,0xff,0xff,0xff,0xf8,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xf0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x3f,0xff,0xff,0xf0,0x0,0x0,0x30,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x7f,0xff,0xff,0xf0,0x0,0x0,0x38,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0xe0,0x0,0x0,0x38,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0xff,0xff,0xff,0xe0,0x0,0x0,0x3c,0x0,0x0,0x0,0x0,0x20,0x0,0x0,0x0,0x3,0xff,0xff,0xff,0xe0,0x0,0x0,0x3e,0x0,0x0,0x0,0x0,0x70,0x0,0x0,0x0,0x7,0xff,0xff,0xff,0xe0,0x0,0x0,0x3f,0x80,0x0,0x0,0x0,0xf8,0x0,0x0,0x0,0xf,0xff,0xff,0xff,0xe0,0x0,0x0,0x3f,0xc0,0x0,0x0,0x3,0xfe,0x0,0x0,0x0,0x1f,0xff,0xff,0xff,0xe0,0x0,0x0,0x7f,0xe0,0x0,0x0,0x7,0xff,0x0,0x0,0x0,0x7f,0xff,0xff,0xff,0xc0,0x0,0x0,0x7f,0xf8,0x0,0x0,0x1f,0xff,0xc0,0x0,0x0,0xff,0xff,0xff,0xff,0xc0,0x0,0x0,0x7f,0xff,0x0,0x0,0x7f,0xff,0xf0,0x0,0x7,0xff,0xff,0xff,0xff,0xc0,0x0,0x0,0x7f,0xff,0xe0,0x7,0xff,0xff,0xff,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff},
	{0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xbf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xdf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xb9,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf7,0xff,0xff,0x87,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x9f,0xff,0x8f,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x1f,0xf7,0xff,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x1f,0xc7,0xfe,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xc7,0x8f,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xe6,0x5f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0x3b,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xdf,0xff,0x73,0xff,0xff,0xff,0xe7,0xff,0xfd,0xfe,0xff,0xfe,0xff,0xff,0xff,0xff,0x8f,0xff,0xe3,0xff,0xff,0xff,0x8f,0xff,0xff,0xfc,0xff,0xfc,0xff,0xff,0xff,0xfb,0x9f,0xff,0xc3,0xfd,0xff,0x3f,0x8f,0xff,0xf7,0xff,0xff,0xff,0xff,0xff,0xff,0xf3,0x1f,0xbf,0xc9,0xf9,0xfe,0x67,0xbc,0xff,0xf7,0xf7,0xff,0xf7,0xcf,0xff,0xff,0xf3,0x3f,0xbf,0x9c,0x33,0xff,0xc3,0xfc,0xff,0xff,0x3e,0x7f,0xe1,0x8f,0xff,0xff,0xf3,0x3f,0xdf,0xfe,0x67,0xff,0xc3,0x38,0xff,0xfc,0x30,0x7f,0xf1,0x9f,0xff,0xff,0xff,0x93,0xff,0xff,0xff,0xff,0x83,0x7a,0xff,0xf1,0xfc,0x7f,0xf1,0xff,0xff,0xff,0xff,0x23,0xff,0xff,0xfe,0xff,0x87,0xf7,0xff,0xeb,0xf8,0xff,0xfd,0xf4,0xff,0xff,0xff,0x43,0xf0,0xf,0xfc,0xff,0xc7,0xee,0xff,0xd3,0xf3,0xff,0xff,0xd0,0xff,0xff,0xff,0xc7,0x80,0x0,0x1,0xff,0xe7,0xfc,0x7f,0xc7,0xe7,0xff,0xfb,0xe1,0xff,0xff,0xff,0xcf,0x80,0x0,0x7,0xff,0xe3,0xf8,0x7f,0xcf,0xf7,0xfc,0xf6,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xff,0xfe,0xe3,0x3c,0xff,0x9f,0xe7,0xfc,0xd,0xcf,0xff,0xfe,0xe7,0xff,0xff,0xff,0xff,0xfc,0xe2,0xf,0xff,0x9f,0xe7,0xfe,0x19,0xdf,0xff,0xff,0xc3,0xff,0xff,0xff,0xff,0xfc,0xc6,0x18,0xff,0x9f,0xc7,0xff,0x79,0x9f,0xff,0xff,0xc3,0x3f,0xff,0xff,0xff,0xfc,0xc6,0x30,0x3,0xff,0x5f,0xff,0xfc,0xbf,0xff,0xff,0x8f,0xf,0xff,0xff,0xff,0xff,0xc7,0x71,0x1,0xff,0x5f,0xff,0xe7,0xff,0xff,0xff,0xcf,0x3,0xf1,0xbf,0xff,0xff,0xc7,0xe3,0xe3,0xfe,0x5f,0xfe,0xc0,0xff,0xff,0xff,0x7f,0xf0,0x0,0x3f,0xff,0xff,0xcf,0xc3,0xff,0xfc,0xdf,0xfe,0x90,0x3f,0xff,0xfe,0x1f,0xfc,0xc,0x7f,0xff,0xff,0xf,0xc7,0xff,0xf8,0xff,0xfe,0x3c,0xf,0xff,0xfc,0x27,0xbf,0xff,0xff,0xff,0xff,0xcf,0x7,0xff,0xf1,0xbf,0xcf,0x7f,0x1,0xf7,0xf2,0x79,0x3f,0xff,0xff,0xff,0xff,0xff,0x8f,0xff,0xe3,0xcf,0x9f,0xff,0xe0,0x7,0xf0,0xfc,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xc7,0xc0,0x1f,0xff,0xf8,0xf,0xfd,0xff,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xcf,0xe0,0x7f,0xff,0xff,0xfd,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x8f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x1f,0xf1,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x1f,0xff,0x1f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x1f,0xff,0xf3,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0xff,0xfc,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xc7,0xff,0xc7,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0xff,0xfb,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xc7,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff},
	{0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0x0,0x1f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x80,0x3,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0x0,0x7,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xc0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x83,0xff,0xff,0xff,0x0,0x3,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xe1,0xe0,0x0,0xff,0xff,0xff,0x80,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0x3f,0xff,0xff,0xe0,0x0,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0x0,0x0,0x1f,0xff,0xff,0xf0,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0x0,0x0,0x0,0x7f,0xff,0xff,0xf8,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0x0,0x0,0xff,0xff,0xff,0xfc,0x0,0x7,0xff,0xff,0xff,0xff,0xff,0xff,0xe0,0x0,0x0,0x3,0xff,0xff,0xff,0xfe,0x0,0x3,0xff,0xff,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0x7,0xff,0xff,0xff,0xfe,0x0,0x1,0xff,0xff,0xff,0xff,0xff,0xfe,0x0,0x0,0x0,0x1f,0xff,0xff,0xff,0xff,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xfc,0x0,0x0,0x0,0x7f,0xff,0xff,0xff,0xff,0x80,0x0,0x7f,0xff,0xff,0xff,0xff,0xf0,0x0,0x0,0x0,0x3f,0xff,0xff,0xff,0xff,0x80,0x0,0x7f,0xff,0xff,0xff,0xff,0xc0,0x0,0x0,0x0,0xf,0xff,0xff,0xff,0xff,0xc0,0x0,0x3f,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0x0,0x3,0xff,0xff,0xff,0xff,0xc0,0x0,0x1f,0xff,0xff,0xff,0xfe,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0xc0,0x0,0x1f,0xff,0xff,0xff,0xfc,0x0,0x0,0x0,0x0,0x0,0x3f,0xff,0xff,0xff,0xe0,0x0,0xf,0xff,0xff,0xff,0xf0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xff,0xff,0xe0,0x0,0xf,0xff,0xff,0xff,0xc0,0x0,0x0,0x0,0x0,0x0,0x3,0xff,0xff,0xff,0xe0,0x0,0xf,0xff,0xff,0xff,0x80,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0xe0,0x0,0xf,0xff,0xff,0xff,0xe0,0x0,0x0,0x30,0x0,0x0,0x0,0x3f,0xff,0xff,0xe0,0x0,0x7,0xff,0xff,0xff,0xf8,0x0,0x0,0x7c,0x0,0x0,0x0,0xf,0xff,0xff,0xc0,0x0,0x7,0xff,0xff,0xff,0xfe,0x0,0x1,0xff,0x0,0x0,0x0,0x3,0xff,0xff,0xc0,0x0,0x7,0xff,0xff,0xff,0xff,0x80,0x3,0xff,0xc0,0x0,0x0,0x0,0xff,0xff,0xc0,0x0,0x7,0xff,0xff,0xff,0xff,0xe0,0xf,0xff,0xf0,0x0,0x0,0x0,0x3f,0xff,0x80,0x0,0x7,0xff,0xff,0xff,0xff,0xf8,0x3f,0xff,0xfc,0x0,0x0,0x0,0x7,0xff,0x80,0x0,0xf,0xff,0xff,0xff,0xff,0xfe,0x7f,0xff,0xff,0x0,0x0,0x0,0x1,0xff,0x0,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xc0,0x0,0x0,0x0,0x7f,0x0,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0x0,0x0,0x1e,0x0,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0x0,0x0,0x0,0x4,0x0,0x0,0x1f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0x1f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xc0,0x0,0x0,0x0,0x0,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0x0,0x0,0x0,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0x0,0x0,0x0,0x0,0x0,0x7f,0xff,0xff,0xff,0xf8,0x7f,0xff,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0x0,0x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x0,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}
};
// 创建对象
DFRobot_NeoPixel  neoPixel_P0;
DFRobot_SerialMp3 serialMp3;
SoftwareSerial    softSerialserialMp3(P13, P14);
DFRobot_PAJ7620U2 paj;


// 主程序开始
void setup() {
	mPython.begin();
	paj.begin();
	display.drawImage(0, 0, 128, 64, imageMatrix[0]);
	neoPixel_P0.begin(P0, 26);
	neoPixel_P0.setBrightness(255);
	serialMp3.begin(&softSerialserialMp3);
	paj.setGestureHighRate(true);
	rgb.write(-1, 0x006600);
	mind_n_sound = 90;
}
void loop() {
	serialMp3.volume(mind_n_sound);
	DFRobot_PAJ7620U2::eGesture_t gesture = paj.getGesture();
	if ((((paj.gestureDescription(gesture)=="Up")) || ((paj.gestureDescription(gesture)=="Forward")))) {
		display.drawImage(0, 0, 128, 64, imageMatrix[1]);
		neoPixel_P0.setRangeColor(0, 25, 0xFFFFFF);
		serialMp3.play();
		rgb.write(-1, 0x006600);
	}
	if (((paj.gestureDescription(gesture)=="Down"))) {
		serialMp3.end();
		neoPixel_P0.clear();
		rgb.write(-1, 0x000000);
		display.drawImage(0, 0, 128, 64, imageMatrix[0]);
	}
	if (((paj.gestureDescription(gesture)=="Left"))) {
		display.drawImage(0, 0, 128, 64, imageMatrix[2]);
		serialMp3.prev();
		neoPixel_P0.setRangeColor(0, 26, 0xFF0000);
	}
	if (((paj.gestureDescription(gesture)=="Right"))) {
		display.drawImage(0, 0, 128, 64, imageMatrix[3]);
		serialMp3.next();
		neoPixel_P0.showRainbow(0, 26, 1, 360);
	}
	if (((paj.gestureDescription(gesture)=="Clockwise"))) {
		display.fillScreen(0);
		serialMp3.volumeUp();
		if ((mind_n_sound<100)) {
			DF_sound((mind_n_sound + 5));
		}
		else {
			display.setCursor(42, 22);
			display.print("音量为100%");
		}
	}
	if (((paj.gestureDescription(gesture)=="Anti-Clockwise"))) {
		serialMp3.volumeDown();
		display.fillScreen(0);
		if ((mind_n_sound>5)) {
			DF_sound((mind_n_sound - 5));
		}
		else {
			display.setCursor(42, 22);
			display.print("音量小于5%");
		}
	}
}


// 自定义函数
void DF_sound(float mind_n_float) {
	display.setCursor(9, 22);
	display.print((String("sound:") + String(mind_n_float)));
	display.rect(113, 9, 3, (map(mind_n_float, 0, 100, 0, 54)), true);
}

	                    				
projectImage
附件 附件
Makelog作者原创文章,未经授权禁止转载。
2
1
评论
[[c.user_name]] [[c.create_time]]
[[c.parent_comment.count]]
[[c.comment_content]]