Search the Community
Showing results for tags 'switch'.
-
Hey all, I'm completely stumped on a bug for my design day project. I've got a rotary encoder that is used to change a value on an LCD screen. The code works perfectly when the encoders state at power up is 00. However if either pin is high, it doesn't work at all. Some transitions will cause the value on the screen to move in the wrong direct, and some transitions don't seem to trigger an interrupt at all. This is the code I'm using and would LOVE some help! Is it possible that the MSP430 is recording the initial values as reference voltages causing subsequent interrupts to not work?
- 6 replies
-
- rotary encoder
- gray code
-
(and 2 more)
Tagged with:
-
I am a newbie to Stellaris. I have a LM4F120H5QR launchpad with me. I just want to poll a switch and at least turn on an LED. all i want to do is: if(button pressed){ turn on the led; } For this do I need to use the ButtonPoll() API as per the Lab3 of the stellaris wiki. I cannot really understand the code much, i mean i know what bouncing is but i did not see how they actually poll the switch in the buttons.c. For example what is that g_s_Appstate or something which is there in the code. Please help me.
-
Hi. First of all I would like to thank developers and supporters of Energia as well as 43oh.com for their wonderful efforts. I have worked on Arduino for quite a bit of time now and am now trying on the MSP430, of course using the launchpad. Recently, I wrote a code in Arduino which reads the value of 4 push-to-on switches and positions the servo according to the switch state. For example, following cases happen : if no switch is pressed, the servo remains at 0, if two switches are pressed, servo moves to say 30 degrees and so on. For this, I have used switch-case control, switching t
- 4 replies
-
- switch
- external input
-
(and 2 more)
Tagged with: