1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/examples/saul
Marian Buschsieweke ba90ba2e2f
examples: BOARD_INSUFFICIENT_MEMORY -> Makefile.ci
- Decluttered Makefile by moving BOARD_INSUFFICIENT_MEMORY lists from Makefile
  to Makefile.ci
- Optimized the list for use of tools:
    - One entry per line reduces the number of merge conflicts
    - One entry per line allows alphabetical sorting e.g. via Vim's sort command
- Sorted all lists alphabetically
2019-10-15 09:55:07 +02:00
..
main.c examples: added stand-alone SAUL example 2017-01-17 12:22:23 +01:00
Makefile examples: BOARD_INSUFFICIENT_MEMORY -> Makefile.ci 2019-10-15 09:55:07 +02:00
Makefile.ci examples: BOARD_INSUFFICIENT_MEMORY -> Makefile.ci 2019-10-15 09:55:07 +02:00
README.md examples: added stand-alone SAUL example 2017-01-17 12:22:23 +01:00

examples/saul

This application demonstrates the usage of SAUL and the SAUL registry.

Usage

Simply build and flash the application for your target board:

BOARD=YOUR_BOARD_NAME_HERE make flash term

Now you should have access to the RIOT shell on your board. For interacting with SAUL devices, use the saul shell command, e.g.:

saul            <- this will list all available devices mapped into
                   the SAUL registry
saul read 0     <- read values from device #0
saul write 1 0  <- write a `0` to SAUL device #1