wayoda / micropython-mcp4725 Goto Github PK
View Code? Open in Web Editor NEWA micropython driver for the mcp4725 I²C DAC
License: The Unlicense
A micropython driver for the mcp4725 I²C DAC
License: The Unlicense
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)
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.