Hey guys! This probably gonna sound really dumb of me but I'm new to this.
So, I setup a relay + lighbulb to my arduino and connecting it via bluetooth HC-06. Everything is fine.
I created a project in Blynk, in the output section, I put digital 13 as my connection(same like in arduino board).
I used Blynk Bluetooth Examples to connect Blynk with the boards and I did not add any codes in it.
When I run the project, the bulb suppose to light up when I press switch button ON and turn off when i press OFF.
But mine did the opposite. When I press OFF it switch ON, and when I press ON it switch OFF. Do I have to declare the initials state in arduino code?
I know that you just can change the value in OFF = 1 and ON = 0 for it to make it work.
But my OCD side wouldn't let me.
Please be nice and Thank You!