gkluoe / micropython-smbus Goto Github PK
View Code? Open in Web Editor NEWA wrapper to provide methods of the CPython 'smbus' module on micropython
License: MIT License
A wrapper to provide methods of the CPython 'smbus' module on micropython
License: MIT License
Hi,
I need transpose this project:https://github.com/neuberfran/OpenElectrons_i2c/blob/master/OpenElectrons_i2c.py
from python to micropython, but I have issue:
As per pimoroni/bme680-python#7, we should make sure that we're passing as data an object which supports the buffer protocol to writeto_mem(), or it fails on at least some architectures.
Hi, I'm trying to use an LCD and I need to write a byte, would you be able to implement the write byte function?
Hi I'm trying to use your wrapper with a library that uses the SMBus module. I have the following error:
Traceback (most recent call last):
File "<stdin>", line 8, in <module>
File "usmbus.py", line 50, in write_i2c_block_data
TypeError: object with buffer protocol required
When trying to run the following code in the same init.py file:
bus = SMBus(1)
bus.write_i2c_block_data(0x44, 0x2C, [0x06])
Any suggestions?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.