Search the Community
Showing results for tags '#energia'.
-
Hi all, I'm relatively new to microcontroller programming and I'm having a few problems with a current project that I would appreciate help with. I'm using MSP430G2553 and Energia to control the speed of two vibromotors. To this I use three pushbuttons, one to change from one motor to another and two more(up and down) to increase/decrease the speed. I have 3 interrupts to do all this and I copied the code below. The program works mostly but sometimes it acts randomly, for example, increasing the speed when I press the decrease button, or not responding at all. My questions are these, they
-
Thank you so much we really need help! Here are the errors we got: project3-1.ino:50:10: error: expected constructor, destructor, or type conversion before '(' token project3-1.ino:51:10: error: expected constructor, destructor, or type conversion before '(' token project3-1.ino:52:10: error: expected constructor, destructor, or type conversion before '(' token project3-1.ino:53:10: error: expected constructor, destructor, or type conversion before '(' token project3-1.ino:54:10: error: expected constructor, destructor, or type conversion before '(' token project3-1.ino:55:10: error: expected
- 11 replies
-
how do i add math.h (the arduino library) to energia? or is there an equivalent library i can use that includes math functions. And where could i find either of those. thank you
- 3 replies
-
- #libraries
- #math
- (and 4 more)
-
Guys, I am having some problems with the CapTouch library and need some help from the experts to resolve this. I modified (stripped) the CapTouch button example an uploaded that code to a G2553: #include <CapTouch.h> #define LEFT_BUTTON 10 #define MIDDLE_LED P1_6 uint8_t state = false; CapTouch left = CapTouch(LEFT_BUTTON, TOUCH_BUTTON); void setup() { /* Use the middle LED to indicate touch */ pinMode(MIDDLE_LED, OUTPUT); } void loop() { /* State will be 1 if any of the buttons was touched, otherwise 0 */ state = left.isTouched(); /* Turn on the LED if any of the bu