Im trying to send data over 2 arduinos using SPI. I would like the master to read the temperature and the humidity from a DHT11 sensor then send the values over SPI to the slave which will display the information on a 1602A LCD. The output variables of the DHT11 are float type variables which are 8 bits so i will need all 8 data bits to be in use by the LCD screen.
My question is is it possible for the RS and Enable pins on the 1602A LCD to be anything other than digital pins 2-13 as all of these ports are taken.
Okay, the DHT11 data sheet is a mess. It looks like values are transmitted as fixed point values with 8 bits before and 8 bits after the decimal point. Don't care if you use the Adafruit library that returns (16 bit) float values.
Which library do you use for output on the LCD? Does it have functions to display floating point values?
The LCD interface can use either 4 bit or 8 bit mode, most if not all libraries use 4 bit mode.
The number of bits in a float has no connection whatsoever with the interface to the LCD. A float on most arduino boards is 4 bytes or 32 bits long, with 6 to 7 significant digits. Any library for the DHT will convert the reading to this float format. You then use print to send the ASCII characters representing the float to the LCD.