Error 'draw' was not declared in this scope

Hello, I am trying to make an alarm clock using 3 buttons, a potentiometer, an OLED display, and an rtc module. The code is pretty much finished but I get this error message; "'draw' was not declared in this scope". I don't know how to fix that and hope you can help me.

alarmklocka_pcb_har_kommit.ino (2.99 KB)

Try moving the setup and loop at the end of your sketch, after the end of your other functions.
You can also change

void draw (void){

to

void draw (){

You have two places where you wrote "for {int i" where you meant "for (int i". This messed up your brackets and made it so the declaration of 'draw()' was inside the declaration of 'loop()' which is not legal. That is why 'draw()' was never declared.

Hawkeye ...