I need help for declaration

hello , how can define a virtual pin what is data type of virtual pin
i want to declarate as int vpin = V1; somthing like that but that not working

The simplest way is…

#define my_virtual_pin     V1


Also when you receive data in the virtual pin function you

Int=param.asInt  // brings it into your program as int

Float=param.asFloat //brings it in as float

Thank you