Hello! Would someone be willing to help with the error in this code? Specifically const uint64_t pipe = 0xE8E8F0F0E1LL; Thanks so much!
#include <Pushbutton.h>
#include <SimpleTimer.h>
//Transmitter coding for the nrf24L01 radio transceiver.
//NRF24L01 and Arduino based Wireless Industrial Temperature Monitoring System
//https://www.electroniclinic.com/
/*
pins connections
vcc 3.3
gnd gnd
ce pin9
scn pin10
sck pin13
mosi pin11
moso pin12
*/
#include <Adafruit_MLX90614.h>
#include <SimpleTimer.h>
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
#define CE_PIN 9
#define CSN_PIN 10
Adafruit_MLX90614 mlx = Adafruit_MLX90614();
double temp_amb;
double temp_obj;
void setup()
#define Pushbutton 2
const uint64_t pipe = 0xE8E8F0F0E1LL;
RF24 radio(CE_PIN, CSN_PIN);
byte data[6]; // depending on the number of sensors used
SimpleTimer timer;
void setup()
{
Serial.begin(9600);
radio.begin();
radio.openWritingPipe(pipe);
timer.setInterval(1000L, tempdata);
}
void loop()
{
timer.run();
radio.write( data, sizeof(data) );
Serial.println(data[0]);
}
void tempdata()
{
temp_amb = mlx.readAmbientTempF();
temp_obj = mlx.readObjectTempF();
}void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}