Closed h-Naima-s closed 4 years ago
Has a solution been found for this problem? I get the same error message, with an Adruino Leonardo board.
Yes! so you need to run the code as it is on Processing app. It will show you 2 ports with error message, and out of those 2 will show you one as available. you need to then go to myPort on line 59 and change the port number to one that is showing available. This was what going wrong with me.
thanks for the fast answer. i've found another soultion: In the MLX90640_I2C_Driver.h, i included the "Arduino.h" header file.
Seems resolved and Arduino header previously mentioned in issue #2.
Closing issue.
Getting the following error message when uploading this code on arduino:
sketch\MLX90640_I2C_Driver.cpp: In function 'int MLX90640_I2CRead(uint8_t, unsigned int, unsigned int, uint16_t*)':
MLX90640_I2C_Driver.cpp:48:7: error: 'Serial' was not declared in this scope
sketch\MLX90640_I2C_Driver.cpp: In function 'int MLX90640_I2CWrite(uint8_t, unsigned int, uint16_t)':
MLX90640_I2C_Driver.cpp:95:5: error: 'Serial' was not declared in this scope
exit status 1 'Serial' was not declared in this scope