Skip to content
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
2 changes: 2 additions & 0 deletions src/Modulino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ModulinoColor VIOLET(255, 0, 255);
ModulinoColor WHITE(255, 255, 255);

#if __has_include("Arduino_LED_Matrix.h")
#if defined(ARDUINO_UNOR4_WIFI)
void __increaseI2CPriority() {
for (int i = 0; i < 96; i++) {
if (R_ICU->IELSR[i] == BSP_PRV_IELS_ENUM(EVENT_IIC0_TXI)) {
Expand All @@ -24,6 +25,7 @@ void __increaseI2CPriority() {
}
}
}
#endif
#else
void __increaseI2CPriority() {}
#endif
2 changes: 1 addition & 1 deletion src/Modulino.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void __increaseI2CPriority();

class ModulinoClass {
public:
#if defined(ARDUINO_UNOR4_WIFI) || defined(ARDUINO_NANO_R4)
#if defined(ARDUINO_UNOR4_WIFI) || defined(ARDUINO_NANO_R4) || defined(ARDUINO_UNO_Q)
void begin(HardwareI2C& wire = Wire1) {
#else
void begin(HardwareI2C& wire = Wire) {
Expand Down