访问mac的传感器数据 [英] Accessing mac's sensor data

查看:150
本文介绍了访问mac的传感器数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法使用Python和/或C ++在mac上获取环境光传感器数据? Googled它,但没有找到很多信息。大部分信息有关于Objective-C

Is there a way to get ambient light sensors data on mac using Python and/or C++? Googled it but didn't find much information.Most of the info there is related to Objective-C

推荐答案

这看起来是非常简单...你可能需要使用C / C ++来创建swig组件

this looks to be non-trivial ... you will probably need to use C/C++ to make a swig component

这是一个读取突然移动传感器数据的项目....看看它

Here is a project that reads the sudden movement sensor data .... take a look at it

http://code.google.com/p/pyapplesms/source/browse/trunk/applesms.c

这篇关于访问mac的传感器数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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