Exemplo n.º 1
0
        public NumberInputer()
        {
            buttonHandler.ButtonDown += delegate() { Led.On = true; };

            buttonHandler.ButtonUp += delegate() { Led.On = false; };

            buttonHandler.SingleClick += delegate() { inputValue++; };

            buttonHandler.ButtonHeld += delegate() { Led.Blink(2); };

            buttonHandler.LongClick += delegate()
            {
                OnNumberInput(inputValue);
                inputValue = 0;
            };
        }
Exemplo n.º 2
0
 public static void OutputNumber(uint result)
 {
     Led.Blink(result, 100, 300);            
 }