コード例 #1
0
ファイル: BrewGuide.cs プロジェクト: Royih/BrewMatic3000
        public BrewGuide(NavigateButtons navButtons, LiquidCrystal_I2C lcd, PT100Reader tempReader1, PT100Reader tempReader2, OutputPort portHeater1, OutputPort portHeater2)
        {
            Lcd = lcd;

            NavButtonsManager = navButtons;

            TempReader1 = tempReader1;
            TempReader2 = tempReader2;

            PortHeater1 = portHeater1;
            PortHeater2 = portHeater2;
        }
コード例 #2
0
ファイル: SlaveMode.cs プロジェクト: Royih/BrewMatic.HW
        public SlaveMode(NavigateButtons navButtons, LiquidCrystal_I2C lcd, PT100Reader tempReader1, PT100Reader tempReader2, OutputPort portMashHeater, OutputPort portMashPump, OutputPort portSpargePump, OutputPort portSpargeHeater, string webAppUrl)
        {
            Lcd = lcd;

            NavButtonsManager = navButtons;

            TempReader1 = tempReader1;
            TempReader2 = tempReader2;

            PortMashHeater = portMashHeater;
            PortMashPump = portMashPump;
            PortSpargePump = portSpargePump;
            PortSpargeHeater = portSpargeHeater;
            WebAppUrl = webAppUrl;
            
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: Royih/BrewMatic3000
        public static void Main_Old()
        {
            var pushButtonPrev = new InputPort(Pins.GPIO_PIN_D6, true, Port.ResistorMode.PullDown);
            var pushButtonNext = new InputPort(Pins.GPIO_PIN_D5, true, Port.ResistorMode.PullDown);

            var tempInput1 = new SecretLabs.NETMF.Hardware.AnalogInput(Pins.GPIO_PIN_A5);
            var tempInput2 = new SecretLabs.NETMF.Hardware.AnalogInput(Pins.GPIO_PIN_A4);

            var portHeater1 = new OutputPort(Pins.GPIO_PIN_D8, false);
            var portHeater2 = new OutputPort(Pins.GPIO_PIN_D9, false);

            var lcd = new LiquidCrystal_I2C(0x27, 20, 4);
            lcd.setBacklight(true);

            var navButtons = new NavigateButtons(pushButtonPrev, pushButtonNext);

            var program = new BrewGuide(navButtons, lcd, new PT100Reader(tempInput1), new PT100Reader(tempInput2), portHeater1, portHeater2);
            program.Initialize();
            program.Run();
        }