예제 #1
0
        internal async Task moveleds()
        {
            int speed = 25;

            register.PutAllOutputPinsEnabled(false);


            foreach (Pin pin in allpins.Where(p => p.IO == PinOpt.IO.output))
            {
                register.PutOutputPinEnabled(pin, false);
                await Task.Delay(speed);

                register.PutOutputPinEnabled(pin, true);
                await Task.Delay(speed);
            }

            register.PutAllOutputPinsEnabled(true);
            await Task.Delay(speed);
        }
예제 #2
0
 private void sw7change(Pin m)
 {
     register.PutOutputPinEnabled(led7, register.getEnabled(m));
 }