If you're wondering if the hardware works then just use a basic code to test it. Something like File > Examples > 01.Basics > Blink.
It's a bad idea to call pinMode() from the constructor. Typically you would use a begin() or init() function for that.