Probleme bibliotheque uno r4 wifi

bonjour a tous

hier j avais un programme qui fonctionnait tres bien sur UNO.

ce matin , j ai voulu installer ce programme sur un UNO R4 WIFI et j ai un gros probleme au moment de la compilation ou de la verification.

quelqu un aurait il une solution ?

un tres grand merci d avance

ATTENTION: la bibliothèque SDM prétend être exécutable sur la (ou les) architecture(s) esp8266, esp32, avr et peut être incompatible avec votre carte actuelle qui s'exécute sur renesas_uno.
In file included from C:\Users\JOEL\Documents\Arduino\sdm230uno_copy_20260203093149\sdm230uno_copy_20260203093149.ino:5:0:
C:\Users\JOEL\Documents\Arduino\libraries\SDM/SDM.h:25:55: error: 'NOT_A_PIN' was not declared in this scope
   #define DERE_PIN                                    NOT_A_PIN                 //  default digital pin for control MAX485 DE/RE lines (connect DE & /RE together to this pin)
                                                       ^
C:\Users\JOEL\Documents\Arduino\libraries\SDM/SDM.h:341:75: note: in expansion of macro 'DERE_PIN'
     SDM(SoftwareSerial& serial, long baud = SDM_UART_BAUD, int dere_pin = DERE_PIN);
                                                                           ^~~~~~~~
C:\Users\JOEL\Documents\Arduino\libraries\SDM/SDM.h:25:55: error: 'NOT_A_PIN' was not declared in this scope
   #define DERE_PIN                                    NOT_A_PIN                 //  default digital pin for control MAX485 DE/RE lines (connect DE & /RE together to this pin)
                                                       ^
C:\Users\JOEL\Documents\Arduino\libraries\SDM/SDM.h:407:21: note: in expansion of macro 'DERE_PIN'
     int _dere_pin = DERE_PIN;
                     ^~~~~~~~
exit status 1

Compilation error: exit status 1

voici apres mon programme complet .

//REMEMBER! uncomment #define USE_HARDWARESERIAL 
//in SDM_Config_User.h file if you want to use hardware uart
#include <Wire.h>
//#include <LiquidCrystal_I2C.h>
#include "SDM.h"                                                               //import SDM library
#define ID_note 1
#define de_pine 3

//LiquidCrystal_I2C lcd(0x27, 20, 4);
#if defined ( USE_HARDWARESERIAL )                                              //for HWSERIAL                                                                    //for AVR
SDM sdm(Serial, 9600, de_pin);                                              //config SDM on Serial1 (if available!)
#else                                                                           //for SWSERIAL
#include <SoftwareSerial.h>                                                     //import SoftwareSerial library                                                                     //for AVR
SoftwareSerial swSerSDM(SDM_RX_PIN, SDM_TX_PIN);    //REMEMBER RX.10, TX.11                            //config SoftwareSerial
SDM sdm(swSerSDM, 9600, de_pine);                                             //config SDM
#endif

void setup() {
  Serial.begin(9600);                                                         //initialize serial
  sdm.begin(); 
  //lcd.init(); // initialisation de l'afficheur                                                                 //initialize SDM communication
}

void loop() {
 

  
 // Serial.println(",,,,,,,");
  //Serial.print("Power:     ");
  //Serial.print(sdm.readVal(SDM_PHASE_1_POWER), ID_note);                              //display power
  //Serial.println("W");


float valeurLue = sdm.readVal(SDM_PHASE_1_POWER);                       //display power
 int VAL = valeurLue;
 
//lcd.backlight();
//lcd.clear();
//lcd.setCursor(0, 0);
//lcd.print("PUISSANCE =");

//lcd.setCursor(12, 0);
//lcd.print(VAL);
//lcd.print("  W");    

 delay(1000);                                                                  //wait a while before next loop
}

Sujet verrouillé car doublon ; voir Program uno R4 wifi

Comme indiqué dans le message, la librairie n'est probablement pas compatible avec la plateforme sur laquelle tu développes.


NOT_A_PIN est en principe déclaré dans le fichier Arduino.h