Base class Digital EasyC Hall Effect Sensor.
More...
#include <Hall-Effect-Digital-easyC-SOLDERED.h>
Inherits EasyC.
|
| HallEffect_Digital_EasyC () |
|
bool | getReading () |
| Reads hall effect sensor value via easyC.
|
|
| EasyC () |
| Main constructor for easyC version.
|
|
void | begin () |
| Initializes sensors on native or easyC on default address.
|
|
void | begin (uint8_t _address) |
| Initializes sensors on supplied i2c address.
|
|
int | sendAddress (char regAddr) |
| Private function to send a single byte to sensor.
|
|
int | readData (char a[], int n) |
| Private function to read n bytes over i2c.
|
|
int | readRegister (char regAddr, char a[], size_t n) |
| Private function to send over i2c and then read n bytes.
|
|
int | sendData (const uint8_t *a, int n) |
| Private function to write n bytes over i2c.
|
|
Base class Digital EasyC Hall Effect Sensor.
◆ HallEffect_Digital_EasyC()
HallEffect_Digital_EasyC::HallEffect_Digital_EasyC |
( |
| ) |
|
|
inline |
◆ getReading()
bool HallEffect_Digital_EasyC::getReading |
( |
| ) |
|
Reads hall effect sensor value via easyC.
- Returns
- Returns sensor value inverted (1 for magnet detected, 0 for no magnet)
◆ initializeNative()
void HallEffect_Digital_EasyC::initializeNative |
( |
| ) |
|
|
inlineprotectedvirtual |
The documentation for this class was generated from the following files: