We all started out “new to this” and worked hard to teach ourselves… with guidance from others. You have been provided the guidance a few times, but so far have been unable to follow even the simplest process of formatting your posted code.
We are not here to do your coding for you… Please stop begging and start trying.
I don’t think I could ever have coped with being a teacher, I’d want to whack the students around the head if they didn’t ‘get it’, and apparently that’s not been allowed in schools in the UK for at least the last 60 years (with the possible exception of Catholic schools)
Glad I was able to help you without having to resort to using Blynk.violenceVirtual()
@Rick_Maity as others have pointed-out, we don’t teach basic C++ programming here, and it appears that’s what you need to learn.
A few hours of watching Youtube videos, or doing online tutorials, followed by a few more hours of experimentation should get you to the point where you’re ready to start answering your own questions.
The Blynk Sketch Builder thatI linked to earlier is a great resource and one that you should use to help you learn how to structure code so that it works well with Blynk.
When you’ve done your ‘apprenticeship’ in C++ then the questions you ask will be more focussed, and you’ll have a better understanding of the answers that you are given. Until you get to that point it’s difficult to help your to help yourself.