-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more i2c functions. #41
base: master
Are you sure you want to change the base?
Conversation
ok, added the example, added stuff to readme. |
hold off on this for a while... br, |
…e byte. Add BE functions. Add helper - so you can, e.g. let i2c = await pigpio.isc(bus, addr); let v = await i2c.readByteData(reg);
ok, it's ready. Note:
This is different to the original, which called back with (err, count, d0, d1, d2 ...) or returned async with [count, d0, d1, d2...] Please let me know your thoughts... |
Hi @guymcswain Also the script PR is not damaging... |
also PCA9685-pigpio-client for servo control :) |
I think these are all good now.
Have a review, but maybe wait to pull until I have added an example (will be servo control via PCA9685, illustrates many but not all of the i2c functions)?
Note the comments on returns with data:
general note about returns with data.
if using await fn(), you will get an array back [count, d0, d1, d2 ...]
if using fn(callback), you will get (err, count, d0, d1, d2 ...)