I2C LCD and GPS as a clock

politxillo:
<...>
i'd like to know how to do this but just with a 4x20 LCD display, I supose the big LCD display it uses an I2C too.

The graphic LCD is about $6 from China and is SPI.

I have built a clock specifically for the wife based on this OLED display that operates like an 1802 LCD. I used one of those inexpensive Chinese I2C adapters. The full source is attached.

I suspect that the bulk of the code can be hacked for your 4-line I2C display.
// Connect the GPS TX (transmit) pin to Digital 3 input

Good luck!

LCD_I2C_2x16-OLED_GPS.zip (7.03 KB)