Hi,
Im using a MLX90614 sensor (connected to SDA/SCL) together with the Adafruit MLX library.
its works fine besides one thing, pin 0 and pin 1 are always HIGH (RX/TX). I would like to use them as IO pins for something but it doesnt work.
#include <Wire.h>
#include <Adafruit_MLX90614.h>
Adafruit_MLX90614 mlx = Adafruit_MLX90614();
void setup() {
Serial.begin(9600);
Serial.println("Adafruit MLX90614 test");
mlx.begin();
pinMode(0,OUTPUT);
}
void loop() {
Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempC());
Serial.print("*C\tObject = "); Serial.print(mlx.readObjectTempC()); Serial.println("*C");
Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempF());
Serial.print("*F\tObject = "); Serial.print(mlx.readObjectTempF()); Serial.println("*F");
Serial.println();
digitalWrite(0,LOW);
delay(100);
digitalWrite(0, HIGH);
delay(500);
}
this is the example code and i included a simple blink sketch for testing.
...it wont blink, the LED is constantly ON and the RX led on my arduino is blinking too.
(same with PIN1)
does anyone have any ideas?