Tap the Home Button > touch and hold the Recent Apps Button > Lock screen settings.
Tap Select screen lock > Knock Code.
Tap the squares in a pattern (from 6 to 8 taps) to set your Knock Code, tap DONE, enter it again, then tap CONFIRM.