Comments (6)
Hi, did you able to set the pin assignment for this chip using this code. I am having difficulties in assigning the miso, mosi, clk pin to correct pins as described in the manual. This code is different from Arduino or raspberry where you get more example/tutorials. If you have been successful in using this code and doing all the assignments please do assist by sharing your code or by giving advice.
Thanks
from mcp2210.
I don't remember and I can't seem to find the file I used to get a hello world. You are talking about using this module and not python code directly from microchip?
from mcp2210.
I have a PCB that has mcp2210, ADC, DAC, and 2 multiplexers. The board uses mcp2210 chip for SPI communication. Then I downloaded this mcp2210 lib to start the communication. Now I am writing the python script base on the mcp2210 lib but there are no clear indications how do you assign pins accordingly like in Raspberry pi for example.
from mcp2210.
If you have access to a windows box you might play with the SPI Terminal application in the Downloads section here: https://www.microchip.com/wwwproducts/en/MCP2210 That's how I figured out what all the settings should be at.
from mcp2210.
Thanks for your advice, it helped me. However the problem now is how do I transfer data after initialization of the pin designation and spisettings.idle_cs.
I am having difficulties in using the dev.transfer() and dev.transfer_settings
from mcp2210.
For someone coming across this module, unless you are on Python 2.x, this is completely obsolete, doesnt work. Just down the examples (without using this obsolete module) given by Microchip via the link provided in first post and you will be good to go without wasting time.
from mcp2210.
Related Issues (15)
- Add docstrings
- Implement 'request SPI bus release' command
- Implement 'get chip status' command
- Implement 'external interrupt status' command
- Write demo code / instructions
- Improve support for large (>60b) transfers
- Implement exception subclasses for specific errors
- dependancies
- sample code HOT 1
- More things needed? HOT 1
- Requirements
- Python 34 support
- TypeError !when i driver MCP2210 in Python window7
- NameError: name 'buffer' is not defined HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mcp2210.