Jump to content
43oh

bubba198

Members
  • Content Count

    10
  • Joined

  • Last visited

Everything posted by bubba198

  1. Hi everyone, I've read the endless discussions about Energia and libraries for Arduino. Case in point here is my problem. Very simple code using a library originally written for Arduino. Energia will compile with no errors under MSP430G2 but the code doesn't work. Then I changed to Stellaris lm4f120 (I have many boards laying around), compiles with no errors as well but it works as expected? I was expecting to hit one of those "easy answers" where the library is allegedly written for Arduino hence it wouldn't work for Energia and while I am sure these are credible cases it clearly
  2. that is defenitely a Windows 7 64bit thing, same exact setup works fine under 32bit. I guess it has to do with the path. Under 64bit one must copy the libraries under \hardware\msp430 folder to work but under 32bit it works fine if the libraries are located in their normal location in the sketch directory
  3. correct, the LED board is 5v and is easily translated from a 3.3v LaunchPad GPIO, however I suspect an issue with the compiler since it was written for Arduino Atmel and even though no errors pop up under Energia the waveform produced out of the PINs isn't what it should be...
  4. Hi everyone, Any port of the TM1640 library for MSP430? The same library for Arduino compiles just fine under Energia 14 but it does NOT work. The LED board shows gibberish and I am guessing this isn't a simple thing to just cross-port the library from Arduino... Again this isn't 1638 but 1640 -- the LED board with no buttons, just 16 digits. TM1640 library exists for Raspberry Pi but it is python so no luck for MSP platform... My naive expectation was that an Arduino library will just compile under Enrgia, which it did with no errors but it doesn't work in real life. Thank
  5. after fighting with the terrible string handling of msp430-g++ I finally got ESP8266 to work with MSP430 G2553 and upload telemetry data to ubidots. This is a REAL working code, no BS. Thanks to all who suggested using standard c str instead of the "String" object. #define SSID "xxxx" #define PASS "xxxxx" #define DST_IP "things.ubidots.com" #define idvariable "xxxxxxxx" // replace with your Ubidots Variable ID #define token "xxxxxxxxxxxxx" // replace with your Ubidots token int len;
  6. @@roadrunner84 Thank you for the suggestion. I suspected something is broken. Forget my own example and problems. I discovered strange stuff. Take the sketch book examples that come with Energia. Pick the string addition example or simply use the on-line Energia tutorial: http://energia.nu/Tutorial_StringConstructors.html It would work; then simply include the SoftSerial library; I mean just include it; no calls to functions no nothing -- it breaks the example; half the code produces totally different results than when compiled without the library though in both cases no compile errors
  7. @@spirilis Thanks for the quick reply. The code is from ubidots: http://ubidots.com/docs/devices/ESP8266.html I'm using MSP430 G2553 I'm finding that String cmd = "anything" doesn't work at all? I guess I am missing fundamentals with that? Basically String cmd = "anything" will return cmd to be null? I am puzzled? Thank you
  8. What's wrong with strings addition in Energia? Super basis; both SSID and PASS area #defineds previously Serial.println("AT+CWMODE=1"); String cmd = "AT+CWJAP=\""; cmd += SSID; cmd += "\",\""; cmd += PASS; cmd += "\""; Serial.println(cmd); cmd equals null???? Thanks
  9. Off-topic; sorry -- any plans for Energia to support pic? Microchip seems to be the only one platform lacking Energia-like easy IDE
×
×
  • Create New...