yanbe / max44009-esp-idf-i2c

Sample code for driving MAX44009 ambient light sensor via ESP-IDF's I2C master driver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample code for driving MAX44009 ambient light sensor via ESP-IDF's I2C master driver

See main code main.c.

About

This sample code implement procedures to read values from MAX44009 ambient light sensor via ESP-IDF's I2C master driver, based on Max Integrated's MAX44009 datasheet.

For local setup

For your local setup, connect SDI pin to GPIO 15 pin and the SCK to GPIO 2 pin as they are default ports (I2C_SDA, I2C_SCL) for I2C master according to ESP32 datasheet, C.4. IO_MUX, Page 49.

About

Sample code for driving MAX44009 ambient light sensor via ESP-IDF's I2C master driver

License:Apache License 2.0


Languages

Language:C 83.3%Language:Makefile 16.7%