The same man invented heroin and aspirin in the same year: Felix Hoffman, 1897.
In 1897, in a two-week period while working at Bayer, Hoffmann synthesized both aspirin and heroin. Aspirin is still widely sold as an over-the-counter medication today.