Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

micropython-mcp4725 is bloatware. We don't need a library for such a simple device #1

Open
wayoda opened this issue Sep 5, 2016 · 0 comments
Labels

Comments

@wayoda
Copy link
Owner

wayoda commented Sep 5, 2016

Yes, this is true!
But if someone is looking for a simple solution and is not running out of RAM in his project the library can make life a bit easier.

To simply make the DAC output something this would be enough

>>> from machine import I2C
>>> i2c=I2C(0,I2C.MASTER,pins=('GP15','GP14'))
>>> def writeToDac(value):
        buf=bytearray(2)
        buf[0]=(value >> 8) & 0xFF
        buf[1]=value & 0xFF
        i2c.writeto(0x62,buf)
>>> writeToDac(2048)
@wayoda wayoda added the wontfix label Sep 5, 2016
@wayoda wayoda changed the title micropython-mcp4725 is bloatware we don't need a library for such a simple device micropython-mcp4725 is bloatware. We don't need a library for such a simple device Sep 5, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant