Skip to content

RPi Examples

jaenrig-ifx edited this page Nov 5, 2020 · 2 revisions

The following examples are provided for Raspberry Pi:

lib-polling

Description

This example shows how the status of the hall switch can be polled using the provided library.

Note

Please open the example source file at hall-switch/src/framework/raspberrypi/lib-polling.cpp and read the comments before compiling it.

Compile

cd hall-switch/src/framework/raspberrypi
make examples/lib-polling

lib-interrupt

Description

This example shows how an interrupt can be triggered on status change of the hall switch.

Note

Please open the example source file at hall-switch/src/framework/raspberrypi/lib-interrupt.cpp and read the comments before compiling it.

Compile

cd hall-switch/src/framework/raspberrypi
make examples/lib-interrupt