Who was the only past President of the United States to hold a patent for an invention?

History Trivia: Who was the only past President of the United States to hold a patent for an invention?