Now with temp sensor

pull/1/head
alanbjohnston 7 years ago committed by GitHub
parent bb8694f826
commit a27b65e6ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -80,8 +80,7 @@ int main(void) {
}
timestamp = time(NULL);
tempSensor = wiringPiI2CSetupInterface("/dev/i2c-3", 0x48);
//srand((unsigned int)(wiringPiI2CReadReg16(tempSensor, 0)));
tempSensor = wiringPiI2CSetupInterface("/dev/i2c-3", 0x48);
setSpiChannel(SPI_CHANNEL);
setSpiSpeed(SPI_SPEED);

Loading…
Cancel
Save

Powered by TurnKey Linux.