stm32l: make the lcd code a library

so I can use it in other code
stm32l: make delay function a library