Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
bitbucket.org/mbrittan/i2c
This package aims to provide a simple method to access I2C and SMBus devices. The functionality is limited to what I required at the time it was created but it should be commented well enough for others to extend it to meet their needs (have included quite a bit C code in the comments to make it easy to find the relevant bits in the kernel code).
Currently supports Linux only and has only been tested with a small number of devices connected to amd64 linux machines.
Note: While only linux is supported the code has been written so that it will compile on any platform (but will always return an error if used).
Thanks to the authors of periph.io (have copied/pasted a hunk of code) and github.com/go-daq/smbus (helped me work out the smbus calls).
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.