public SketchVersion(int major, int minor, int api, ArduinoType type) { Major = major; Minor = minor; Api = api; Type = type; }
public static string ArduinoTypeToDisplayName(ArduinoType arduinoType) { switch (arduinoType) { case ArduinoType.ARDUINO_UNO: return("UNO R3"); case ArduinoType.ARDUINO_NANO: return("NANO R3"); case ArduinoType.ARDUINO_MEGA2560: return("Mega2560"); case ArduinoType.ARDUINO_PROMICRO: return("ProMicro"); } return("unknown"); }