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); }
private void sw7change(Pin m) { register.PutOutputPinEnabled(led7, register.getEnabled(m)); }