toradex / torizon-samples

All sample code related to TorizonCore project.
The Unlicense
32 stars 24 forks source link

gpio: Python: change gpioChip to match a generic /dev/gpiochip* number #26

Closed AllanKamimura closed 3 months ago

AllanKamimura commented 4 months ago

changed the sample example to include devices with GPIO in any gpio bank, not only gpiochip0 I tested on apalis-imx8 with TorizonCore 6.6.1+build.14 (kirkstone) and the GPIO are in gpiochip2

AllanKamimura commented 4 months ago

this gpio python package was updated, this one seems to be the official package now https://pypi.org/project/gpiod/

I updated the main script for this new package

andreriesco commented 4 months ago

@AllanKamimura I believe there are some files missing in the try-update-template, like the tasks.json.

AllanKamimura commented 4 months ago

Hi @andreriesco I tried to re-re-run the try-update-template, I think it is working now

AllanKamimura commented 3 months ago

closing this MR in favor of https://github.com/toradex/torizon-samples/pull/29