Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • L linux-gpio-java
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Departamento de Informática
  • Research
  • TaRDISTaRDIS
  • WP6WP6
  • external
  • linux-gpio-java
  • Wiki
  • Usage

Usage · Changes

Page history
jc.leitao created page: Usage authored Jun 01, 2026 by Joao Leitao's avatar Joao Leitao
Hide whitespace changes
Inline Side-by-side
Usage.md 0 → 100644
View page @ c7f96b50
# Usage — Linux-GPIO
## Usage
Any accessed GPIO device need at least read permission (which is enough even
for writing). Typically, only the root user has access, hence permissions need
to be set. For instance, for device 0 on a Raspberry Pi (user `pi`) :
```bash
$ chown root:pi /dev/gpiochip0
$ chmod g+r /dev/gpiochip0
```
The [javadoc](https://javadoc.io/doc/io.helins/linux-gpio) provide all details.
Have a look at the [examples](../tree/masterexamples).
Run an example where `$EXAMPLE` is the name of an example such as
`AlternatingLeds` :
```bash
$ ./gradlew :examples:$EXAMPLE:run
```
Run tests :
```bash
$ ./gradlew test
```
Run tests on the Raspberry Pi 3 (or similar), will test some IO :
```bash
$ ./gradlew test -DonRaspberry=true
```
\ No newline at end of file
Clone repository
  • Babel Interface
  • Configuration
  • Home
  • Usage