Search the Community
Showing results for tags 'msp-exp430g2et'.
-
Hello, I'm a newbie and was trying example codes using MSP-EXP430G2ET. Soon I noticed RED_LED and GREEN_LED work opposite against codes. Is this common or I have wrong setting? For example, when I run Blink code as follow, #define LED RED_LED void setup() { pinMode(LED, OUTPUT); } void loop() { digitalWrite(LED, HIGH); delay(1000); digitalWrite(LED, LOW); delay(1000); } the MSP430 blinks green led instead of red led. I went over the user's guide of MSP 430 but couldn't find description about RED_LED
-
I2c not working with energia. Below is the code attached. Please help Master Reader #include <Wire.h> void setup() { Wire.setModule(0); Wire.begin(); // join i2c bus (address optional for master) Serial.begin(9600); // start serial for output } void loop() { Wire.requestFrom(2, 6); // request 6 bytes from slave device #2 while(Wire.available()) // slave may send less than requested { char c = Wire.read(); // receive a byte as character Serial.print(c); // print the character } delay(500); } Slave Sender .