Hall Switch  2.1.0
C++ library of Infineon single Hall-effect switch family for magnetic sensing applications
hall-polling.cpp File Reference

Hall Switch Polling Raspberry Pi Example. More...

Functions

int main ()
 

Variables

HallSwitchRpi hs (TLE4964_3M_S2Go_Rpi_Adapter_Slot_1)
 

Detailed Description

Hall Switch Polling Raspberry Pi Example.

Date
November 2020

SPDX-License-Identifier: MIT

Function Documentation

int main ( )

Here is the call graph for this function:

Variable Documentation

Raspberry Pi Example

Read B field level continuosly.

Note: Don't forget to define HALL_SWITCH_FRAMEWORK as HALL_SWITCH_FRMWK_RPI in src/config/hall-conf.hpp. Create Hall Switch Object

Frameworks: TLE4964_3M_S2Go_Rpi_Adapter_Slot_1 TLE4964_3M Shield2Go on Slot 1 of Infineon's Shield2Go Adapter on a Raspberry Pi >= 2. TLE4964_3M_S2Go_Rpi_Adapter_Slot_2 TLE4964_3M Shield2Go on Slot 2 of Infineon's Shield2Go Adapter on a Raspberry Pi >= 2. TLE4964_3M_S2Go_Rpi_Adapter_Slot_3 TLE4964_3M Shield2Go on Slot 3 of Infineon's Shield2Go Adapter on a Raspberry Pi >= 2.