Waveshare library (1.8" LCD) is so weird

We need to see your code. But it looks like you have not created the LCD object properly. Reread the example and compare it to your code.