I locked my iPhone passcode in my phone in Notes. Just did a factory reset.
My iPhone was compromised. I had to do a factory reset. I created a new iCloud email address and changed my phone passcode. I entered this info into Notes. Then, when I turned the phone off, I had not remembered the new passcode, so I have been locked out of my phone for 3 days.