简体   繁体   English

有没有办法在笔记本电脑上用 Ubuntu 模拟 I2C?

[英]Is there a way to emulate I2C with Ubuntu on laptop?

folks.伙计们。

I am making a program with Python on RaspberryPi2 that installed I2C modules.我正在 RaspberryPi2 上用 Python 制作一个安装了 I2C 模块的程序。 But I frustrated to write codes using I2C on RaspberryPi, because it is very slow and it cannot use my favorite editor Sublime Text2.但是我对在 RaspberryPi 上使用 I2C 编写代码感到沮丧,因为它非常慢,而且不能使用我最喜欢的编辑器 Sublime Text2。 I think if I will be able to emulate I2C on my Macbook Air or Ubuntu laptop, I can write codes faster and efficient.我想如果我能够在我的 Macbook Air 或 Ubuntu 笔记本电脑上模拟 I2C,我就可以更快、更高效地编写代码。

Could you kindly advise me a way to realize my wish?你能告诉我一种实现我愿望的方法吗?

What you really want is a way to deploy to the raspberry pi so you can develop locally.您真正想要的是一种部署到树莓派的方式,以便您可以在本地进行开发。 There are a number of different solutions(Git push/ pull, scp, ftp etc..) You should look into Fabric Link api.有许多不同的解决方案(Git push/pull、scp、ftp 等)。您应该查看Fabric Link api。 This allows you to seamlessly add deployment to your cycle.这使您可以无缝地将部署添加到您的周期中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM