begin - VCSFA-MARS/TSLPB GitHub Wiki

Overview

Initializes the TSLPB, starts the I2C bus, and configures the pins needed for reading the TSLPB analog sensors.

void TSLPB::begin()

TSLPB::begin() sets the following pin modes:

PIN MODE
TSL_ADC Analog Input
TSL_MUX_A Digital Output
TSL_MUX_B Digital Output
TSL_MUX_C Digital Output
TSL_NSL_BUS_STATUS_PIN Digital Input

Returns

No return value

Arguments

Takes no arguments

Usage

TSLPB tslpb;

void setup() {
    tslpb.begin();
}