where WantedState = 0 or 1
thanks for your answer, but is not need any widget?
What does the 'widget' do you mean?
You may refer to the application note below for how to control/use PSoC4 GPIO.
widget is Capsense terminology, you may want to say need a component, yes, need to place a Pin component in the top design sch before using the function that Bob mentioned.
ok ,thanks ,now it works.