Only one comment if you get to a system beyond the capabilities of the Arduino IDE I have on two occassions and have to use one of the third party interfaces into Xcode on Mac or the VStudio version for PC. tou have to conform to the ISO standard with a h file.
The IDE for arduino actually makes for lazy programmers and in some cases very poor code...