public void InitializeModels()
        {
            uint[] digi_14 = GeneratePinArray(14, 0);
            uint[] digi_54 = GeneratePinArray(54, 0);

            uint[] ana_6 = GeneratePinArray(6, 14);
            uint[] ana_8 = GeneratePinArray(8, 14);
            uint[] ana_16 = GeneratePinArray(16, 14);

            uint[] pwm_6 = new uint[] { 3, 5, 6, 9, 10, 11 };
            uint[] pwm_14 = GeneratePinArray(14, 0);

            uint[] inter_2 = new uint[] { 2, 3 };
            uint[] inter_6 = new uint[] { 2, 3, 21, 20, 19, 18 };

            AtMegaModel atmega328p_6Analog = new AtMegaModel("atmega328p_6Analog", digi_14, ana_6, pwm_6, inter_2);
            AtMegaModel atmega328p_8Analog = new AtMegaModel("atmega328p_8Analog", digi_14, ana_8, pwm_6, inter_2);
            AtMegaModel atmega2560 = new AtMegaModel("atmega2560", digi_54, ana_16, pwm_14, inter_6);

            _models = new AtMegaModel[3];
            _models[0] = atmega328p_6Analog;
            _models[1] = atmega328p_8Analog;
            _models[2] = atmega2560;

            //Fill models combo
            //_modelsCombo.Items.Add(

        }
        public ArduinoEmulatorForm()
        {
            InitializeComponent();
            InitializeModels();
            _currentModel = _models[1];

            LoadModelPins();

            _lightuinoForm = new LightuinoForm();
            _lightuinoForm.Show();

            ArduinoBase.CurrentInstance.OnPinModeChanged += new EventHandler(CurrentArduino_OnPinModeChanged);
            ArduinoBase.CurrentInstance.OnPinStateChanged += new EventHandler(CurrentArduino_OnPinStateChanged);

            btn_start_Click(null, null);
        }