使用 iPhone 分线板控制伺服系统
我对 Stack Overflow 和一般编程都很陌生,希望你不要介意我的问题。我为我的 iPhone 订购了一块断线板,它带有所有 30 个引脚分配。我想编写一个应用程序,让我可以使用 iPhone 控制伺服电机和传感器。我目前正在学习使用 corona SDK 进行编程,我想知道是否可以使用它来编写我的应用程序。我查了一下规格,iPhone 可以处理多线程,所以在处理输入方面,它应该和 Arduino 微处理器一样好,甚至更好。基本上我只是想知道使用 lua 作为编程环境的 Corona SDK 是否可以做到这一点。提前致谢。 SM
I'm new to Stack Overflow and programming in general, I hope you don't mind my questions. I ordered a breakboard for my iphone and it comes with all 30 pin assignments. I want to write an app that will allow me to control a servo motor and a sensor using the iphone. I am currently learning to program with the corona SDK and I was wondering if I could just use that to write my app. I looked up the specs and the iphone can handle multi threading so this should be just as good if not better at handling input then an Arduino microprocessor. Basically I am just wondering if Corona SDK which uses lua as a programming environment could do this. Thanks in advance.
SM
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不确定你是否可以做到这一点,你必须使用本机 obj-c/cocoa api。
您必须查看外部配件框架。请注意,通常您必须拥有 MFi 帐户才能发布连接到使用扩展坞连接器的配件的应用程序。
http://developer.apple.com/library/ ios/#documentation/ExternalAccessory/Reference/ExternalAccessoryFrameworkReference/_index.html
Not sure you can do this corona, you'll have to use the native obj-c/cocoa apis.
You'll have to look at the External Accessories framework. Note that generally you have to have an MFi account in order to ship apps that connect to accessories that use the dock connector.
http://developer.apple.com/library/ios/#documentation/ExternalAccessory/Reference/ExternalAccessoryFrameworkReference/_index.html