| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
PyDuino is a Python-to-Arduino transpiler and uploader. Write Arduino sketches in Python, automatically convert them to C++ .ino files, and upload to your Arduino board.
python main.py create <project_name>Creates a folder with main.py and lib/ for headers.
python main.py convert-header <header_file> [--libclang <path_to_libclang>] # or you can skip --libclang by default!Generates Python .py stubs in lib/.
python main.py to-ino <python_file> [--auto-loop]Generates .ino file. --auto-loop will call all functions in loop() automatically.
python main.py setupavrInstalls the Arduino AVR core using arduino-cli.
python main.py upload <python_file> [--auto-loop] [--port <COM>] [--list-ports] [--fqbn <fqbn>]# Create a project
python main.py create MyProject
# Convert a header
python main.py convert-header lib/CheapStepper.h
# Transpile Python to .ino
python main.py to-ino main.py --auto-loop
# List ports
python main.py upload main.py --list-ports
# Upload to board
python main.py upload main.py --port COM3 --fqbn arduino:avr:uno
#๐ก Tip: the port is auto-detected, so generally in normal cases you don't need to specify it. Only use it if you really need to.Made with ๐ by @pro-grammer-SD
| Back | FazBrowse Home | New Git URL |