ElectroBlocks
ElectroBlocks is a Python library for communicating with Arduino-based educational hardware using a custom serial protocol. It simplifies control of servos, RGB LEDs, LCD screens, and more—especially in block-based coding environments like Blockly.
Upgrade To New Version
- Go to this file pyproject.toml
- Change the version number by .1
version = "0.1.8" - Push to main
Features
- Auto-detects the first available Arduino Uno or Mega over USB
- Sends
config:and control commands to the Arduino firmware - Waits for
"System:READY"and"DONE_NEXT_COMMAND"to sync logic - Supports digital write, RGB LEDs, LCD printing, and servo control
Installation
pip install electroblocks
Example
from electroblocks import ElectroBlocks
eb = ElectroBlocks()
eb.config_servo(5)
eb.move_servo(5, 90)
eb.config_rgb(3, 5, 6)
eb.set_rgb(255, 128, 0)
eb.config_lcd()
eb.lcd_print(0, 0, "Hello")
eb.lcd_clear()
eb.digital_write(13, 1)
eb.close()
Metadata
Release files for electroblocks 0.1.25
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| electroblocks-0.1.25.tar.gz | 18.8 kB | Without provenance | Details for electroblocks-0.1.25.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| electroblocks-0.1.25-py3-none-any.whl | Python 3 | none | any | Details for electroblocks-0.1.25-py3-none-any.whl |
Total release size: 37.7 kB
Release files / electroblocks-0.1.25.tar.gz
| Download URL | electroblocks-0.1.25.tar.gz |
|---|---|
| Size | 18.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
907f01f650890e22ec920ddca0a74851d461f2d81577754b15b4c3ab5bb27f0a
|
|
BLAKE2b-256 checksum How to use checksums |
a4516391b82b066ba4d26d05c50d0f3b78e4cbb5c698232bac7a2960ee5e2bf6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / electroblocks-0.1.25-py3-none-any.whl
| Download URL | electroblocks-0.1.25-py3-none-any.whl |
|---|---|
| Size | 18.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a46cc843a53fc949c4a5e9be69cbaa5b412eee006153d71dd0601e0af897a41f
|
|
BLAKE2b-256 checksum How to use checksums |
06e0e1922fe3d499811ab1e791e2a38f3663e5bf76d70fc3f0d939143cea8e74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for electroblocks 0.1.25
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.