Skip to content

Commit 1ad825b

Browse files
committed
Make macro name more explicit, use official product name
1 parent 6dd13b1 commit 1ad825b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libraries/OPAMP/src/OPAMP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ bool OpampClass::begin() {
8282
}
8383

8484
bool OpampClass::begin(OpampSpeedMode speed) {
85-
return this->begin(1u << ARDUINO_DEFAULT_OPAMP_CHANNEL, speed);
85+
return this->begin(1u << ARDUINO_UNO_R4_DEFAULT_OPAMP_CHANNEL, speed);
8686
}
8787

8888
bool OpampClass::begin(uint8_t const channel_mask, OpampSpeedMode speed) {

libraries/OPAMP/src/OPAMP.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ enum OpampSpeedMode {
1212

1313
/* The supported boards have 4 OPAMP channels, however, only channel 0 is accessible. */
1414
/* All other channels are connected to the LED matrix or not exposed. */
15-
#define ARDUINO_DEFAULT_OPAMP_CHANNEL 0
15+
#define ARDUINO_UNO_R4_DEFAULT_OPAMP_CHANNEL 0
1616

1717
/**
1818
* Pin Mapping for OPAMP
19-
* Uno R4 (Minima, WiFi):
19+
* Arduino UNO R4 (Minima, WiFi):
2020
* ~Channel 0~
2121
* Plus: Analog A1 (Renesas P0.00)
2222
* Minus: Analog A2 (Renesas P0.01)

0 commit comments

Comments
 (0)