YOu need to plug it in and let it get enough power so that it turns on. If you're trying to charge via USB that may take a half hour or more. If you're charging plugged into the was then less time.
Once you can turn it on then you can swipe and enter the passcode.