Cyrano de Bergerac (1619–1655) wrote the books L'Autre Monde: ou les États et Empires de la Lune (Comical History of the States and Empires of the Moon) and Les États et Empires du Soleil (The States and Empires of the Sun) both published after his death. These contain various flying machines that convey him to the Moon and the Sun.
In the first of these, he builds a flying machine with wings. It doesn't work, but when some soldiers find it and attach fireworks to it, it actually works and carries him aloft. From Project Gutenberg
I had made a Machine which I fancied might carry me up as high as I pleased, so that nothing seeming to be wanting to it, I placed my self within, and from the Top of a Rock threw my self in the Air: But because I had not taken my measures aright, I fell with a sosh in the Valley below.
Bruised as I was, however, I returned to my Chamber without loosing courage, and with Beef-Marrow I anointed my Body, for I was all over mortified from Head to Foot: Then having taken a dram of Cordial Waters to strengthen my Heart, I went back to look for my Machine; but I could not find it, for some Soldiers, that had been sent into the Forest to cut wood for a Bonnefire, meeting with it by chance, had carried it with them to the Fort: Where after a great deal of guessing what it might be, when they had discovered the invention of the Spring, some said, that a good many Fire-Works should be fastened to it, because their Force carrying them up on high, and the Machine playing its large Wings, no Body but would take it for a Fiery Dragon. In the mean time I was long in search of it, but found it at length in the Market-place of Kebeck (Quebec), just as they were setting Fire to it. I was so transported with Grief, to find the Work of my Hands in so great Peril, that I ran to the Souldier that was giving Fire to it, caught hold of his Arm, pluckt the Match out of his Hand, and in great rage threw my self into my Machine, that I might undo the Fire-Works that they had stuck about it; but I came too late, for hardly were both my Feet within, when whip, away went I up in a Cloud.