Commit e3eaf05a authored by Balasuriya D.A.M.'s avatar Balasuriya D.A.M.

Create const and add setup for MLX90614

parent 712dd30f
......@@ -2,11 +2,17 @@
#include <Wire.h>
#include <Adafruit_MLX90614.h>
Adafruit_MLX90614 mlx = Adafruit_MLX90614();
const int buzzer=13;
const int threshold=38;
void setup() {
Serial.begin(9600);
Serial.println("Arduino MLX90614 Testing");
mlx.begin();
Serial.begin(9600);
Serial.println("I-Helmet");
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
digitalWrite(buzzer, HIGH);
mlx.begin();
}
void loop() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment