PSoC 5LP color sensor

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

cross mob
user_3678521
Level 3
Level 3
5 likes given First like given

Hey i'm making a color sensor with a TCS3200, and i was wondering how to change a pin from high to low and low to high though the code? hope you can help

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Just put a pin component on the topdesign and configure for no hardware connection.

Now you can use PinName_Write(0) to set the pin low.

Refer to the pin dtasheet which explains the component in deep.

Bob

View solution in original post

1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Just put a pin component on the topdesign and configure for no hardware connection.

Now you can use PinName_Write(0) to set the pin low.

Refer to the pin dtasheet which explains the component in deep.

Bob