Can someone help me combining 2 code i got into 1

to be a little more spesific i am a complete noob in this, i got a oled display connected to a arduino mega that displays 3 temperature sensors, and has a alert for one of the sensors thats the first code and works fine with arduino, the other code is for a 2.4 shield touchscreen that is mounted in the same arduino mega its function is to diplay 3 buttons that when they are pressed it will power a relay. both codes works totally fine when used separately but ive tried to combine both codes so i can use the oled to reed the temperature sensors and alerts and the lcd to control the relays but when i do the oled only displays multiple lines and the lcd display the buttons but dosent do anything when i touch. whoever think is able to help me figure his out i am willing to pay for the service, also i can provide the codes separetly and the combined one i have. thanks

As you have indicated that you are willing to pay for help I have moved your question to the appropriate section of the forum.

There are topics describing how to merge codes. It's not that terribly difficult. Some cut and paste mostly.

thanks!!!

thanks i am going to check it out. ive been messing with the code i managed to make the lcd work in the combined code and when i press the button it activates the relay also in the serial monitor i can see the temperature sensors doing their job, the only thing missing is the oled displaying the temperatures on it. i think it has to be the order i am doing my void setup and my void loop.
i am really gratefull for the quick help.

1 Like

If You post the formatted code in code tags and by pen and paper create schematics helpers get a chance to think. Else You will be flooded with guesses taking Your time to evaluate.
Links to the datasheet of special devices like the OLED is mandatory.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.