support both arduino < 1.0 and >= 1.0