Re: How do I run multiple codes on 1 board

Given the data that you have provided? No clue. Post the two separate sketches, and an explanation of what the combined sketch should do, then maybe.

Well for a starter a given sketch can have only one setup() and one loop() function. You can't simply paste two complete sketches into one sketch. You will have to paste the sections of the first sketch into the second one in three sections, stuff before the setup() function, stuff in the setup() function and stuff in the loop() section. That may be oversimplifying things as there can't be any duplicate variable names, and other details.

Lefty