https://github.com/cafjs/caf_rpi_gpio
CAF.js library that provides access to GPIO pins in a Raspberry Pi
https://github.com/cafjs/caf_rpi_gpio
Last synced: 5 months ago
JSON representation
CAF.js library that provides access to GPIO pins in a Raspberry Pi
- Host: GitHub
- URL: https://github.com/cafjs/caf_rpi_gpio
- Owner: cafjs
- Created: 2016-01-11T07:22:41.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-04-18T22:33:44.000Z (about 3 years ago)
- Last Synced: 2025-09-25T21:51:35.636Z (9 months ago)
- Language: JavaScript
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE-2.0.txt
Awesome Lists containing this project
README
# Caf.js
Co-design cloud assistants with your web app and IoT devices.
See https://www.cafjs.com
## Raspberry Pi Library for Accessing GPIO Pins
[](https://github.com/cafjs/caf_rpi_gpio/actions/workflows/push.yml)
This library provides access to GPIO pins in a Raspberry Pi. It runs in the device not in the cloud.
## API
See {@link module:caf_rpi_gpio/proxy_iot_gpio}
## Configuration Example
### iot.json
See {@link module:caf_rpi_gpio/plug_iot_gpio}
```
{
"module": "caf_rpi_gpio#plug_iot",
"name": "gpio",
"description": "Access to GPIO pins for this device.",
"env" : {
"maxRetries" : "$._.env.maxRetries",
"retryDelay" : "$._.env.retryDelay",
"gpiomem" : "process.env.GPIO_MEM||true",
"mapping" : "process.env.MAPPING||physical",
"allowMock" : "process.env.ALLOW_MOCK||true",
"mockRootDir" : "process.env.MOCK_ROOT_DIR||/tmp/gpio"
},
"components" : [
{
"module": "caf_rpi_gpio#proxy_iot",
"name": "proxy",
"description": "Proxy to access GPIO pins",
"env" : {
}
}
]
}
```