手势传感器9960使用

手势传感器9960使用,第1张

APDS-9960

具有先进的手势检测、接近检测和数字神卜环境兆岩光感应功能,是一款采用单个 8 引脚封装的数字 RGB、环境光、近程和手势传感器装置。该装置具有与 I2C 兼容的接口,为红色、绿色、蓝色、透明 (RGBC),近程和手势感测配有红外 LED。RGB 和环境光感测功能可在多种光条件下以及通过多种减振材料包括深色玻璃的情况下,检测出光强度。此外,集成 UV-IR 遮光滤光片可实现精准的环境光和相关色温感测。游猜穗

https://codeload.github.com/adafruit/Adafruit_APDS9960/zip/master

在串口查看:

你先用旧机器连接psn,然后在奖杯那选择同步奖杯 然后在新机器上不要创建新帐号,而是用原来旧机器如森帐号登陆 然后再在新机器上到奖杯那里再同步奖杯 但是这样只能同步奖杯,不能同步机器存储卡里的游戏记录,注意 你碰辩要同步记录必须买ps+会员, 另外部分游戏记录在游渣吵亩戏卡上,那种反而方便了,不用这么麻烦

APDS-9960

具有先进的手势检测,接近检测和数字环境光感应功能,是一个采用单个8引脚封装的数字RGB,环境光,近程和手势传感器。该装置清正具有I2C兼容的接口,为红色,绿色判吵,蓝色,和透明(RGBC),近程和手势感测配有LED红外,

APDS-9930

https://github.com/Depau/APDS9930

https://codeload.github.com/adafruit/Adafruit_APDS9960/zip/master

Adafruit_APDS9960 apds

// the setup function runs once when you press reset or power the board

void setup() {

Serial.begin(115200)

if(!apds.begin()){

Serial.println("failed to initialize device! Please check your wiring.")

}

else Serial.println("Device initialized!"掘正侍)

//gesture mode will be entered once proximity mode senses something close

apds.enableProximity(true)

apds.enableGesture(true)

}

// the loop function runs over and over again forever

void loop() {

//read a gesture from the device

uint8_t gesture = apds.readGesture()

if(gesture == APDS9960_DOWN) Serial.println("v")

if(gesture == APDS9960_UP) Serial.println("^")

if(gesture == APDS9960_LEFT) Serial.println("<")

if(gesture == APDS9960_RIGHT) Serial.println(">")

}


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/12275960.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-24
下一篇 2023-05-24

发表评论

登录后才能评论

评论列表(0条)

保存