TI Sensortag,如何使用按钮? [英] TI Sensortag, how to use push buttons?

查看:118
本文介绍了TI Sensortag,如何使用按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用新的

I am working with the new TI Sensortag. I'm trying to do a simple iOS app that reads the state of those buttons. I've found a lot of guide, tutorial etc. about using Sensortag's sensors (humidity, IR Temperature, ...) but no one talks about push buttons on his top. Has anyone an idea about them?

非常感谢您

Reda

P.S.我正在使用iPhone 5

P.S. I'm using an iPhone 5

推荐答案

0xFFE1 SK_KEY_PRESSED GATT_PERMIT_READ左右键,侧键仅在测试模式下作为位2.

0xFFE1 SK_KEY_PRESSED GATT_PERMIT_READ Left/Right Keys, Side key as Bit 2 in test mode only.

http://processors.wiki.ti.com/index. php/File:BLE_SensorTag_GATT_Server.pdf

按键在原理图上以按键式碳" S2和S3列出,并且可以通过透明塑料盖中的切掉的插入物以及凸起的凸起来进行访问(我不认为这是盲文,但这本来是感触)在唇膏红色"的情况下. 通过BLE设备监视器进行连接,并在测试模式下运行,以查看是否已检测到它们,因为在此模式下检查了所有三个开关并显示了事件.

Keys are list on the schematic as "push-button carbon" S2 and S3 and access is through cut-away inserts in the clear plastic cover and via raised bumps (I don't think it's Braille but that would have been a nice touch) in the "lipstick red" case. Connect via the BLE Device monitor and run in the test mode to see if they are detected as all three switches are checked in this mode and the events are displayed.

这篇关于TI Sensortag,如何使用按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆