how can i control GPIO to HIGH or LOW out?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello ,

     if i want to make some PGIO to high or low out,what i can  do ?

     in my program , i  Add a judgment statement to determine the output of PGIO ,

     so who can help me ?

     thanks.

0 Likes
1 Solution
Roy_Liu
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 10 questions asked

You may refer to the application note below for how to control/use PSoC4 GPIO.

AN86439 - PSoC 4 - Using GPIO Pins | Cypress Semiconductor

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.

Roy Liu

View solution in original post

0 Likes
5 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Simply use

PinName_Write(WantedState);

where WantedState = 0 or 1

Bob

0 Likes
Anonymous
Not applicable

thanks for your answer, but is not need any widget?

0 Likes
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

Hi Jame,

What does the 'widget' do you mean?

Thanks,

Ryan

0 Likes
Roy_Liu
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 10 questions asked

You may refer to the application note below for how to control/use PSoC4 GPIO.

AN86439 - PSoC 4 - Using GPIO Pins | Cypress Semiconductor

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.

Roy Liu
0 Likes
Anonymous
Not applicable

ok ,thanks ,now it works.

0 Likes