Skip to content

Commit ae6d64b

Browse files
committed
nicla_sense_me: add ADC pins A0 and A1
Fixes ArduinoBLE tests not passing due to missing ADC pin definitions. Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
1 parent 140c6c7 commit ae6d64b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

variants/arduino_nicla_sense_me_nrf52832/arduino_nicla_sense_me_nrf52832.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
1616
# Host number of completed commands does not follow normal flow control.
1717
CONFIG_BT_BUF_CMD_TX_COUNT=10
1818

19-
#CONFIG_ADC=y
19+
CONFIG_ADC=y
2020
#CONFIG_PWM=y
2121

2222
CONFIG_LLEXT_STORAGE_WRITABLE=n

variants/arduino_nicla_sense_me_nrf52832/arduino_nicla_sense_me_nrf52832.overlay

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,14 @@
3030

3131
builtin-led-gpios = <&gpio0 10 0>; // TODO: fixme: use real i2c led (will need some magic like PureAnalog)
3232

33+
adc-pin-gpios = <&gpio0 2 0>, // 10: A0 (AIN0)
34+
<&gpio0 30 0>; // 11: A1 (AIN6)
35+
36+
io-channels = <&adc 0>,
37+
<&adc 6>;
38+
3339
serials = <&uart0>;
3440
i2cs = <&i2c1>;
3541
spis = <&spi1>;
3642
};
37-
};
43+
};

0 commit comments

Comments
 (0)