Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: add driver for APDS99XX ambient light and proximity sensors #10420

Merged
merged 4 commits into from
Mar 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dist/tools/codespell/ignored_words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ od

# dout (Digital out) => doubt
dout

# ALS (Ambient Light Sensing) => ALSO
als
9 changes: 9 additions & 0 deletions drivers/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ ifneq (,$(filter apa102,$(USEMODULE)))
FEATURES_REQUIRED += periph_gpio
endif

ifneq (,$(filter apds99%full,$(USEMODULE)))
FEATURES_REQUIRED += periph_gpio_irq
endif

ifneq (,$(filter apds99%,$(USEMODULE)))
FEATURES_REQUIRED += periph_i2c
USEMODULE += apds99xx
endif

ifneq (,$(filter at,$(USEMODULE)))
FEATURES_REQUIRED += periph_uart
USEMODULE += fmt
Expand Down
4 changes: 4 additions & 0 deletions drivers/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ ifneq (,$(filter apa102,$(USEMODULE)))
USEMODULE_INCLUDES += $(RIOTBASE)/drivers/apa102/include
endif

ifneq (,$(filter apds99xx,$(USEMODULE)))
USEMODULE_INCLUDES += $(RIOTBASE)/drivers/apds99xx/include
endif

ifneq (,$(filter at24cxxx,$(USEMODULE)))
USEMODULE_INCLUDES += $(RIOTBASE)/drivers/at24cxxx/include
endif
Expand Down
1 change: 1 addition & 0 deletions drivers/apds99xx/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include $(RIOTBASE)/Makefile.base
Loading