Set Propertys of an buttton with a Digital pin

Hello guys,

I need help from People they are good with python blynklib,
I was trying " blynk.set_property(“G20”, “offBackcolor”, “#000000”) " to change the button color.
It works only with " blynk.set_property(“20”, “offBackcolor”, “#000000”) " on a Virtuel Pin.
I need a Physical Pin.

I have a raspberry pi 4 and use python3.

PS: Sorry for my bad english.

blynk.set_property(V20, "offBackcolor”, "#000000")

What do you mean by I need a Physical Pin?

hmm…

Ok,

I am back,
I need a Digital pin because i don’t know how to read
a virtuel pin and it’s important for my project and there is an Error,
if i use blynk.set_property(V20, "offBackcolor”, “#000000”)

I’d suggest that you look at the Blynk Python library examples.

Pete.

Hi Pete,

I did it already meaby some one can explayn how the test code on github works,
I dont under stand it.

I know nothing about Python I’m afraid.

Pete.

You were my last hope…

:frowning:

Why are you using a Pi as your client device?
It’s the worse possible choice in my opinion.

Pete.

I was making a projekt with a GUI and after finishing the GUI I was finding Bylnk,
and think “It’s perfect for my projekt”.

PS:Arduino has possibility for a GUI.

NodeMCU or ESP32 would be my choice, using the C++ library.
Also, you should use the new version of Blynk, as the version you are using will be retired soon.

Pete.

I cant use them because:

  1. My projekt needs an graphical interface.
  2. I want to use python and linux.
  3. It isn’t a only blynk project (I was using Blynk to deaktivate a alarm).

Well, most people use Blynk as their UI, but you can also run a webserver if you wish.

Pete.

Actualy I am trying to use blynk and the raspberry pi for output(so they do the same).

You should probably explain exactly what it is that you’re trying to achieve, because your one line cryptic comments aren’t helping us to help you.

Pete.

Forgot wat i sayd:
Actualy I am trying to use blynk and the raspberry pi for output(so they do the same).

I am trying to (de)akivate a alarm with two buttons.
If i press one button (in push mode) it should turn red and the other ones white.
(So I know what state the alarm has)

Because I dont know (and nobody explayns) how to read a virtuel pin.
So do I use a Digital Pin but I dont know how to change propertys of an widget
with a Digital Pin.

I don’t understand what this means.
Are you saying that the RPInhas a screen attached and you need to display the same data on it as the Blynk app?

Or are you simply wanting to use Blynk to control the GPIOs on the Pi?

Pete.

help

You won’t get any useable help unless you explain in clear, understandable terms, exactly what it is that you’re trying to achieve with your project.

Saying “forget what I said” and “ignore what I said” results in people doing exactly that!

Pete.

Ok I need help by this,

I am trying to (de)akivate a alarm with two buttons.
If i press one button (in push mode) it should turn red and the other ones white.
(So I know what state the alarm has)

Because I dont know (and nobody explayns) how to read a virtuel pin.
So do I use a Digital Pin but I dont know how to change propertys of an widget
with a Digital Pin.