Bonjour
Peut-on créer un fichier .cpp et .h ne contenant que les #define, lié à un .cpp par le .h qui les utilisera ?
html.cpp
#include <ESP8266WebServer.h>
#include <Arduino.h>
using namespace std;
#include "html.h"
#include "elmt_html.h"
html.h
#ifndef HTML_H_INCLUDED
#define HTML_H_INCLUDED
#include <Arduino.h>
#include <ESP8266WebServer.h>
using namespace std;
extern int frequence;
extern int rampe;
void form (ESP8266WebServer& server, int frequence , float rampe );
#endif
elmt_html.cpp
#include <Arduino.h>
using namespace std;
#include "elmt_html.h"
#define....
#define....
#define....
#define....
elmt_html.h
#ifndef ELMT_HTML_H_INCLUDED
#define ELMT_HTML_H_INCLUDED
#include <Arduino.h>
using namespace std;
#endif
Merci car ça fait un moment que j'essaie mais que néni