I am using UNO with ADS1015 with some success thanks to help on this forum.
Now I need to reduce the LCD displayed output of the LM35 temp. sensor by one LSD (least significant digit), i.e. from xx.xx to xx.x - the fourth digit is insignificant for my purpose and I don’t want it displayed.
(I have tried scaling and rounding without success. I can’t somehow reduce this particular input alone.)
I have included significant parts of my code.
#include <Adafruit_ADS1015.h>
#include <Wire.h>
#include <LiquidCrystal.h>
Adafruit_ADS1015 ads1015;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup()
int tmpReading = ads1015.readADC_SingleEnded(3);
ads1015.setGain (GAIN_TWOTHIRDS);
float tmpVolts = tmpReading * 10.0 / 32.5 ;
lcd.setCursor (9, 1);
lcd.print ("t c");
lcd.setCursor (10, 1);
lcd.print (tmpVolts);
delay(50);
Can you help/show me how to discard the LSD ?