Skip to content

Commit e146518

Browse files
committed
sensor: configure APDS-9960 to work without interrupt pin
Signed-off-by: Mike Szczys <mike@golioth.io>
1 parent 6ce720d commit e146518

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

boards/aludel_elixir_ns.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ CONFIG_ALUDEL_BATTERY_MONITOR=y
77
# Turn on regulator to power click headers
88
CONFIG_REGULATOR=y
99

10+
# Use Sensor without a GPIO INT line
11+
CONFIG_APDS9960_FETCH_MODE_POLL=y
12+
1013
# Use a unique package name to use with Packages/Cohorts/Deployments
1114
CONFIG_GOLIOTH_FW_UPDATE_PACKAGE_NAME="aludel_elixir"

boards/aludel_elixir_ns.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
apds9960: apds9960@39 {
1212
compatible = "avago,apds9960";
1313
reg = <0x39>;
14-
int-gpios = <&gpio0 2 (GPIO_ACTIVE_LOW)>;
14+
int-gpios = <&gpio0 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
1515
};
1616
};

boards/nrf9160dk_nrf9160_ns.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
# Use Sensor without a GPIO INT line
2+
CONFIG_APDS9960_FETCH_MODE_POLL=y
3+
14
# Use a unique package name to use with Packages/Cohorts/Deployments
25
CONFIG_GOLIOTH_FW_UPDATE_PACKAGE_NAME="nrf9160dk"

boards/nrf9160dk_nrf9160_ns.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
apds9960: apds9960@39 {
2525
compatible = "avago,apds9960";
2626
reg = <0x39>;
27-
int-gpios = <&gpio0 3 (GPIO_ACTIVE_LOW)>;
27+
int-gpios = <&gpio0 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
2828
};
2929

3030
lis2dh: lis2dh@18 {

0 commit comments

Comments
 (0)