fdcavalcanti opened a new pull request, #3537:
URL: https://github.com/apache/nuttx-apps/pull/3537
## Summary
<!-- This field should contain a summary of the changes. It will be
pre-filled with the commit's message and descriptions. Adjust it accordingly -->
* interpreters/python: support nuttx-periphery package
Adds support for installing nuttx-periphery Python package by default
on Python support. This package provides API for accessing Nuttx
character drivers.
* interpreters/python: update repack_wheel script
Updates the repack_wheel_add_pyc.py script to support other packages,
not only pip.
## Impact
<!-- Please fill the following sections with YES/NO and provide a brief
explanation -->
Impact on user: Adds support for using Python as a mean to access character
devices.
<!-- Does it impact user's applications? How? -->
Impact on build: No.
<!-- Does it impact on building NuttX? How? (please describe the required
changes on the build system) -->
Impact on hardware: No.
<!-- Does it impact a specific hardware supported by NuttX? -->
Impact on documentation: No.
<!-- Does it impact the existing documentation? Please provide additional
documentation to reflect that -->
Impact on security: No.
<!-- Does it impact NuttX's security? -->
Impact on compatibility: No.
<!-- Does it impact compatibility between previous and current versions? Is
this a breaking change? -->
## Testing
<!-- Please provide all the testing procedure. Consider that upstream
reviewers should be able to reproduce the same testing performed internally -->
Tested on ESP32-P4.
### Building
<!-- Provide how to build the test for each SoC being tested -->
- `./tools/configure.sh -S esp32p4-function-ev-board:python`
- Make and flash
### Running
<!-- Provide how to run the test for each SoC being tested -->
Open Python and try importing the `nuttx_periphery` package.
```
nsh> python
Python 3.13.0 (main, Jun 10 2026, 16:56:35) [GCC 14.2.0] on nuttx
Type "help", "copyright", "credits" or "license" for more information.
>>> from nuttx_periphery import GPIO
>>>
```
Control GPIO through Python:
```
>>> from nuttx_periphery import GPIO, GPIOPinType
>>> gpio = GPIO("/dev/gpio0")
>>> gpio.set_pin_type(GPIOPinType.GPIO_OUTPUT_PIN)
>>> gpio.write(True)
```
### Results
<!-- Provide tests' results and runtime logs -->
Python package is successfully installed and able to be imported.
GPIO test works and LED blinks successfully.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]