
MCP2210
Python Library pour l'interfaçage avec l'interface USB-SPI MCP2210.
7
Github Watches
18
Github Forks
25
Github Stars
mcp2210
Python library for interfacing with the MCP2210 USB-SPI interface.
Installation
$ pip install mcp2210
or, clone this repository and install from source:
$ git clone https://github.com/arachnidlabs/mcp2210.git
$ cd mcp2210
$ sudo setup.py install
Usage
>>> from mcp2210 import MCP2210
>>> dev = MCP2210(my_vid, my_pid)
>>> dev.transfer("data")
In addition to making transfers, device settings can be accessed and modified:
>>> dev.manufacturer_name = "Foobar Industries Ltd"
>>> print dev.manufacturer_name
Foobar Industries Ltd
>>> dev.product_name = "Foobinator 1.0"
>>> print dev.product_name
Foobinator 1.0
>>> settings = dev.boot_chip_settings
>>> settings.pin_designations[0] = 0x01 # GPIO 0 to chip select
>>> dev.boot_chip_settings = settings # Settings are updated on property assignment
>>> spisettings = dev.boot_transfer_settings
>>> spisettings.idle_cs = 0x01
>>> spisettings.active_cs = 0x00 # Set pin 1 to go low on chip select
>>> dev.boot_transfer_settings = spisettings
chip_settings
and boot_chip_settings
define basic settings such as GPIO pin assignments. transfer_settings
and boot_transfer_settings
define SPI settings such as data rate, chip select value, and inter-byte timings. boot_usb_settings
defines USB configuration options like VID, PID, and power requirements. On boot, the MCP2210 copies boot_transfer_settings
and boot_chip_settings
into transfer_settings
and chip_settings
respectively.
All properties are cached when fetched, and updated on the device when set, so storing results to the chip requires an assignment, as in the above code, even when the arguments are mutable.
See the MCP2210 datasheet for full details on available commands and arguments.
相关推荐
I find academic articles and books for research and literature reviews.
Confidential guide on numerology and astrology, based of GG33 Public information
Advanced software engineer GPT that excels through nailing the basics.
Take an adjectivised noun, and create images making it progressively more adjective!
Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease
Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.
L'application tout-en-un desktop et Docker AI avec chiffon intégré, agents AI, constructeur d'agent sans code, compatibilité MCP, etc.
MCP Server pour récupérer le contenu de la page Web à l'aide du navigateur sans tête du dramwright.
Un puissant plugin Neovim pour gérer les serveurs MCP (Protocole de contexte modèle)
Pont entre les serveurs Olllama et MCP, permettant aux LLM locaux d'utiliser des outils de protocole de contexte de modèle
La communauté du curseur et de la planche à voile, recherchez des règles et des MCP
🧑🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.
Plateforme d'automatisation de workflow à code équitable avec des capacités d'IA natives. Combinez le bâtiment visuel avec du code personnalisé, de l'auto-hôte ou du cloud, 400+ intégrations.
Une liste organisée des serveurs de protocole de contexte de modèle (MCP)
Serveurs MCP géniaux - une liste organisée de serveurs de protocole de contexte de modèle
Reviews

user_hEr7d0Tj
The mcp2210 from arachnidlabs is an excellent USB-to-SPI protocol converter that has significantly streamlined my development process. Its reliable performance and ease of integration have made it an indispensable tool for my projects. Highly recommended for anyone working with SPI communication. Check it out at https://github.com/arachnidlabs/mcp2210.