I'm playing around with building a simple keyboard, that will have just few buttons, nothing complex.
Now when following USB 3.0 specs, it says we should use pull down resistors on CC1 and CC2 so that host can tell if device is on or not and also resolve orientation.
But USB 2.0 specs says we should use pull up resistors on D+ or D- lines and that without them host would not recognize device.
I'm confused what to do here since I have both CC1 and CC2 but also D+ and D-.
Should I follow USB 3.0 specs and pull down only CC1 and CC2 lines like this:
Or should I also pull D- up to 5V like this, while pulling CC1 and CC2 to the ground like this:
I would be thankful to someone who could explain how to use these 2.0 Type C connectors and point me to some specification I could read. And explain why use pullup on D- when I already pulled CC1 and CC1 down to ground? Or can I just ignore CC1 and CC2 lines and just use pullup on D- line if it's USB 2.0?
Edit: MCU I'm using does not have internal pullup or pulldown resistors. Pull up on D- should go through 1.5k resistor, I missed that one.