Need help adapting code

First of all hi, and sorry if im posting on the wrong place.

My problem is, that im trying to replicate a proyect that i found on youtube, which its called the chugmeter. Here is the link of the project:

(https://create.arduino.cc/projecthub/circuito-io-team/chug-meter-for-st-patrick-s-day-by-circuito-io-13b137?ref=userrespected&ref_id=1236207&offset=0#toc-step-12--thingsboard-results-12)

The thing is, that i dont have the same display used in the original project, which is a sparkfun 7 segment serial display. In my case i have a 4 digit 7 segment display (12 pins - Common Cathode), which its not wired the same way. Also i bought the Force Sensitive Resistor - Square instead of the Force Sensitive Resistor 0.5''.

My problem lies in that i dont have the knowledge to change the code.

To make the assembly, i followed the guide provided by circuito.io, which helped me with the assembly. This page also provided me with a code, that specifies all the conections.

The final step, said by this projects guide, its and i quote "Replace the setup and loop functions from the code you got from circuito.io, with the code below". Code which of course doesnt work because i dont have de same components and cant understant what to change on it.

I will attach the code provided by circuito.io wich integrated all the components and libraries, and the other file named "code to replace", in which im supossed to use the setup and loop functions.

I hope someone could help me
Thaks in advance

code provided by circuito.io.txt (5.44 KB)

code to replace.txt (2.93 KB)

Hello randritz,
Welcome to the forum.

Have you read 'how to us this forum - please read'? (I suspect not). Please read it, big clue in the title.

My problem lies in that i dont have the knowledge to change the code.

It is not clear if you are asking for someone to do this for you, in which case click on 'report to moderator' and ask them to move this to 'gigs and collaborations' and expect to pay.

If you want to learn to do it yourself then start with the examples in the IDE, on this site and elsewhere and learn to code yourself. Eventually you will realise you have enough knowledge to tackle this project. If you get stuck ask for help. What you are unlikely to get here is someone doing it for you FoC.

thanks for replying

the code its pretty much done, the only thing was to know what to keep and what to replace, considering that the components are different.

Ill ask a moderator to move the topic, i will try to make the changes on my own aswell