Never say too much. Don’t start complaining about your position, tasks, and scheduling. Just hand your resignation letter to your manager or Human Resources department and say something like “I would like to resign, please accept my resignation.” That’s all.
It could be useful if you keep one copy of your letter with you (signed by the HR department or your boss). You can decide later whether it’s needed or unnecessary.