Help with an error message please?

hi, this is my first time using an Arduino, I have a bunch of oled displays which im looking to use for a project, so I thought I would quickly try and run something on one. Im following this video https://www.youtube.com/watch?app=desktop&v=YDkqYLt_YHs, I have followed everything but when I come to run the code it comes up with this error message.

Could I please have some help? Thank you.

Here is the error code.

/private/var/folders/g5/q9v_vt016jqfjv2k_s27mgtw0000gn/T/.arduinoIDE-unsaved202402-32794-25r8fh.xm5pq/sketch_jan2c/gh.ino:32:6: error: redefinition of 'void setup()'
 void setup() {
      ^~~~~
/private/var/folders/g5/q9v_vt016jqfjv2k_s27mgtw0000gn/T/.arduinoIDE-unsaved202402-32794-25r8fh.xm5pq/sketch_jan2c/sketch_jan2c.ino:3:6: note: 'void setup()' previously defined here
 void setup()
      ^~~~~
/private/var/folders/g5/q9v_vt016jqfjv2k_s27mgtw0000gn/T/.arduinoIDE-unsaved202402-32794-25r8fh.xm5pq/sketch_jan2c/gh.ino: In function 'void loop()':
/private/var/folders/g5/q9v_vt016jqfjv2k_s27mgtw0000gn/T/.arduinoIDE-unsaved202402-32794-25r8fh.xm5pq/sketch_jan2c/gh.ino:111:6: error: redefinition of 'void loop()'
 void loop() {
      ^~~~
/private/var/folders/g5/q9v_vt016jqfjv2k_s27mgtw0000gn/T/.arduinoIDE-unsaved202402-32794-25r8fh.xm5pq/sketch_jan2c/sketch_jan2c.ino:17:6: note: 'void loop()' previously defined here
 void loop()
      ^~~~

exit status 1

Compilation error: redefinition of 'void setup()'
type or paste code here

In the Arduino IDE, use Ctrl T or CMD T to format your code then copy the complete sketch.

Use the < CODE / > icon from the ‘posting menu’ to attach the copied sketch.

Post the complete error message, also using code tags.

See the "How to get the best out of this forum" post for instructions.

sorry how do I find that?

➜ please read How to get the best out of this forum and modify your post accordingly (including code tags and necessary documentation for your ask).

please, please never ever again post pictures of text... Not only they are not readable nor usable directly for copy&paste but they use up lots of storage and internet bandwidth which contributes to polluting the planet.

sorry, I have edited it now. the error code is being shown now properly. Thanks

seems your sketch has two setup() and two loop() functions

how would I go around fixing this then? thanks

You have two sketches in one directory, looks like the gh.ino does not belong there.

so do I just need to run it separately?

right I have just ran it separately and it is displaying something now. thank you very much

In one directory, they will get combined.

Ahh ok, that's good to know now, thank you again.