Using fast-gpio with the servo expansion
-
Has anyone had any luck using fast-gpio with the servo expansion? I hooked mine up to a 5v power supply and a 9g micro servo and ran 'fast-gpio pwm 14 200 25' in Terminal and got nothing. I got GPIO port 14 from the example, is that why it's not working? I'm plugged into servo port S0 too, I wasn't sure which to use so I just chose one. I'm new to this type of programming so bare with me if I'm way off base here. Thanks in advance!
-
@Rob--Marston The Omega communicates with the Servo Expansion via I2C. So you shouldn't use the fast-gpio library with it. If you are familiar with python, here's a I2C library we had used before: https://github.com/OnionIoT/Python-I2C (we are currently writing an i2c library in C/C++, and also a servo expansion library based on that.
-
This post is deleted!
-
That explains it! Do you know who authored it? I'd love to see an example of how it's used. I have some understanding of Python but aren't really sure how to use the library to actually move the servos. Anyway, thanks again for your help @Boken-Lin -- love the Omega
-
@Rob--Marston There's a Servo Expansion application available on the command line: pwm-exp
Check out this help desk article for a full guide