iPhone 的外部控制器

发布于 2024-11-07 18:17:03 字数 129 浏览 4 评论 0原文

是否有任何外部按钮/控件可以插入 iPhone 并可在应用程序中使用。如果是这样,是否有人有任何与这些控件一起使用的代码的链接。

我正在考虑某种我可以破解的 iPod 控制器,它可以插入手机底部的插槽中。

干杯。

Are there any external buttons/controls that can be plugged into the iPhone that can be used within an app. If so, does anyone have any links to any code to use with these controls.

I was thinking of some kind of iPod controller that I could hack that could be plugged into the slot on the bottom of the phone.

Cheers.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

日暮斜阳 2024-11-14 18:17:03

是的。在原生操作系统 iOS 设备上,通过相机连接套件支持多个 USB MIDI 控制器。应用程序可以使用 CoreMIDI 输入/输出消息从这些外部 MIDI 控制器上的按钮获取输入。

但应用程序不能在现有操作系统下使用通用的可破解 USB 输入设备,除非开发者是制造商并且也是 Apple MFi 计划的成员。

添加:

...或者您破解 USB 设备,使其模仿 Apple 支持的 MIDI 设备之一。 此处是使用 AVR 微控制器执行此操作的示例。

Apple 的 CoreMIDI 参考位于此处

添加#2:

如果您希望计时器应用程序更加准确,请考虑使用麦克风音频输入插孔,并将一些按钮连接到音频线性调频发生器(可以使用模拟电路或微型廉价微型设备来完成)。对不同的按钮使用不同的线性调频频率。 iPhone 上的一些合适的 DSP 代码可能可以以亚毫秒精度确定音频输入线性调频信号的相对时序。

Yes. Several USB MIDI controllers are supported via the Camera Connection kit on stock OS iOS devices. An app can use CoreMIDI in/out messages to get input from the buttons on these external MIDI controllers.

But an app can't use a generic hackable USB input device under the stock OS, unless the developer is the manufacturer and also a member of Apple's MFi program.

ADDED:

...or you hack the USB device so that it imitates one of Apple's supported MIDI devices. Example of doing this with an AVR microcontroller is here.

Apple's CoreMIDI reference is here.

ADDED #2:

If you want even more accuracy for a timer app, consider using the mic audio input jack, and connecting some buttons to audio chirp generators (could be done either with analog circuitry or a tiny cheap micro). Use different chirp frequencies for different buttons. Some suitable DSP code on the iPhone could probably determine the relative timings of audio input chirp signals with sub-millisecond accuracy.

慵挽 2024-11-14 18:17:03

对此有很多解决方案,其中大多数涉及对 iPhone 进行越狱。

最著名/最受欢迎的是 iControlPad

There are many solutions to this, most involve jailbreaking the iphone.

The most famous/popular is the iControlPad.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文