Alors malheuresement les professeurs on déja acheté les deux capteurs et on ne peut plus les changer. J'ai donc téléchargé ta bibliothèque, j'ai réussi à l'installer mais je n'arrive pas à la faire marcher ![]()
j'ai l'impression que les deux bibliotèques rentre en conflit et au final il me mette l'eurreur :
In file included from VCNL4000.ino:1:
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h: In function 'void i2c_wait_scl_high()':
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:208: error: 'SCL_PORT' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:208: error: 'SCL_PIN' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h: In function 'boolean i2c_init()':
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:262: error: 'SCL_PORT' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:262: error: 'SCL_PIN' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:264: error: 'SDA_PORT' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:264: error: 'SDA_PIN' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h: In function 'bool i2c_start(uint8_t)':
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:282: error: 'SDA_PORT' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:282: error: 'SDA_PIN' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:283: error: 'SCL_PORT' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:283: error: 'SCL_PIN' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h: In function 'bool i2c_rep_start(uint8_t)':
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:307: error: 'SCL_PORT' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:307: error: 'SCL_PIN' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:308: error: 'SDA_PORT' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:308: error: 'SDA_PIN' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h: In function 'void i2c_start_wait(uint8_t)':
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:335: error: 'SDA_PORT' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:335: error: 'SDA_PIN' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:336: error: 'SCL_PORT' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:336: error: 'SCL_PIN' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h: In function 'void i2c_stop()':
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:355: error: 'SCL_PORT' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:355: error: 'SCL_PIN' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:356: error: 'SDA_PORT' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:356: error: 'SDA_PIN' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h: In function 'bool i2c_write(uint8_t)':
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:431: error: 'SCL_PORT' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:431: error: 'SCL_PIN' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:432: error: 'SDA_PORT' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:432: error: 'SDA_PIN' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h: In function 'uint8_t i2c_read(bool)':
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:500: error: 'SCL_PORT' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:500: error: 'SCL_PIN' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:501: error: 'SDA_PORT' was not declared in this scope
\\SERVEUR01\PERIESM\Travail\Arduino\libraries\SoftI2CMaster/SoftI2CMaster.h:501: error: 'SDA_PIN' was not declared in this scope