Search the Community
Showing results for tags 'Buttons'.
-
The code I am using allows me to press SW2 or SW3 and send a notification to IFTTT. I can't figure out how to identify which switch was press so I can send that information to IFTTT. Currently I can press SW2 and press SW3 and both will send a notification to IFTTT but I don't know how I can separately identify which button was pressed. Any direction would be appreciated. Code Below /* Enable internal pullup. * Without the pin will float and the example will not work */ pinMode(PUSH1, INPUT_PULLUP); attachInterrupt(PUSH1, sendRequest, FALLING); // Interrupt is fired whenever
-
Hi there! I'm totally new in MCU programming) I have the g2553 microcontroller and I need some program to make two PWMs and to control shift of impulse fronts one from other by clicking buttons. Try to explain: ___---___---___---___ ___---___---___---___ <click!> ____---___---___---__ ___---___---___---___ I think shift by adding __delay_cycles() to one of pwms is not too bad idea, but i totally have no thoughts how to get two PWMs. Sorry about my english:)