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
➜ 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.