资源简介
paj7602手势识别模块代码,可高速准确识别9种姿态,低速比较准确识别15种手势姿态。可用I2C接口传输数据。本资料为使用arduino uno r3开发板开发的配套代码
代码片段和文件信息
/*
* paj7620.cpp
* A library for Grove-Guesture 1.0
*
* Copyright (c) 2015 seeed technology inc.
* Website : www.seeed.cc
* Author : Wuruibin & Xiangnan
* Modified Time: June 2015
*
* The MIT License (MIT)
*
* Permission is hereby granted free of charge to any person obtaining a copy
* of this software and associated documentation files (the “Software“) to deal
* in the Software without restriction including without limitation the rights
* to use copy modify merge publish distribute sublicense and/or sell
* copies of the Software and to permit persons to whom the Software is
* furnished to do so subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS OR
* IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER
* LIABILITY WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include
#include “paj7620.h“
#include
// PAJ7620U2_20140305.asc
/* Registers‘ initialization data */
unsigned char initRegisterArray[][2] = { // Initial Gesture
{0xEF0x00}
{0x320x29}
{0x330x01}
{0x340x00}
{0x350x01}
{0x360x00}
{0x370x07}
{0x380x17}
{0x390x06}
{0x3A0x12}
{0x3F0x00}
{0x400x02}
{0x410xFF}
{0x420x01}
{0x460x2D}
{0x470x0F}
{0x480x3C}
{0x490x00}
{0x4A0x1E}
{0x4B0x00}
{0x4C0x20}
{0x4D0x00}
{0x4E0x1A}
{0x4F0x14}
{0x500x00}
{0x510x10}
{0x520x00}
{0x5C0x02}
{0x5D0x00}
{0x5E0x10}
{0x5F0x3F}
{0x600x27}
{0x610x28}
{0x620x00}
{0x630x03}
{0x640xF7}
{0x650x03}
{0x660xD9}
{0x670x03}
{0x680x01}
{0x690xC8}
{0x6A0x40}
{0x6D0x04}
{0x6E0x00}
{0x6F0x00}
{0x700x80}
{0x710x00}
{0x720x00}
{0x730x00}
{0x740xF0}
{0x750x00}
{0x800x42}
{0x810x44}
{0x820x04}
{0x830x20}
{0x840x20}
{0x850x00}
{0x860x10}
{0x870x00}
{0x880x05}
{0x890x18}
{0x8A0x10}
{0x8B0x01}
{0x8C0x37}
{0x8D0x00}
{0x8E0xF0}
{0x8F0x81}
{0x900x06}
{0x910x06}
{0x920x1E}
{0x930x0D}
{0x940x0A}
{0x950x0A}
{0x960x0C}
{0x970x05}
{0x980x0A}
{0x990x41}
{0x9A0x14}
{0x9B0x0A}
{0x9C0x3F}
{0x9D0x33}
{0x9E0xAE}
{0x9F0xF9}
{0xA00x48}
{0xA10x13}
{0xA20x10}
{0xA30x08}
{0xA40x30}
{0xA50x19}
{0xA60x10}
{0xA70x08}
{0xA80x24}
{0xA90x04}
{0xAA0x1E}
{0xAB0x1E}
{0xCC0x19}
{0xCD0x0B}
{0xCE0x13}
{0xCF0x64}
{0xD00x21}
{0xD10x0F}
{0xD20x88}
{0xE00x01}
{0xE10x04}
{0xE20x41}
{0xE30xD6}
{0xE40x00}
{0xE50x0C
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5210 2018-12-10 17:08 PAJ7620-ardunio例程\example\paj7620_15gestures\paj7620_15gestures.ino
文件 4694 2018-12-10 17:08 PAJ7620-ardunio例程\example\paj7620_9gestures\paj7620_9gestures.ino
文件 7937 2018-12-10 17:08 PAJ7620-ardunio例程\paj7620.cpp
文件 4413 2018-12-10 17:08 PAJ7620-ardunio例程\paj7620.h
文件 18 2018-12-10 17:08 PAJ7620-ardunio例程\README.md
目录 0 2018-12-10 17:08 PAJ7620-ardunio例程\example\paj7620_15gestures
目录 0 2018-12-10 17:08 PAJ7620-ardunio例程\example\paj7620_9gestures
目录 0 2018-12-10 17:08 PAJ7620-ardunio例程\example
目录 0 2018-12-10 17:08 PAJ7620-ardunio例程
----------- --------- ---------- ----- ----
22272 9
评论
共有 条评论