Fixed Arduino type detection: need to include Arduino.h and board types were swapped!