thermistor = adafruit_thermistor.Thermistor(board.TEMPERATURE, 10000, 10000, 23.65, 3950)

# The Circuit Playground uses the Everlight ALS-PT19 as the sensor.
# The datasheet shows a graph of lux vs voltage and the lux ranges from 0 to 10000
# The output in Python ranges from 0 to 65535. 
# So I'll map the range 0 65535 to 0 to 10000 as a rough estimate
light = analogio.AnalogIn(board.LIGHT)

mic = audiobusio.PDMIn(board.MICROPHONE_CLOCK, board.MICROPHONE_DATA,
                       sample_rate=16000, bit_depth=16)

buttonA = digitalio.DigitalInOut(board.BUTTON_A)
buttonA.switch_to_input(pull=digitalio.Pull.DOWN)
buttonB = digitalio.DigitalInOut(board.BUTTON_B)
buttonB.switch_to_input(pull=digitalio.Pull.DOWN)

i2c = busio.I2C(board.ACCELEROMETER_SCL, board.ACCELEROMETER_SDA)
int1 = digitalio.DigitalInOut(board.ACCELEROMETER_INTERRUPT)
lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c, address=0x19, int1=int1)
lis3dh.range = adafruit_lis3dh.RANGE_8_G