Jump to content
43oh

Govs

Members
  • Content Count

    1
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Govs reacted to energia in OneWire Energia Library   
    [update]. New library attached with support for all MSP430 LaunchPads, TivaC LaunchPads and CC3200 LaunchPad. Working on the Multi Tasking targets (e.g. MSP432 EMT and CC3200 EMT)
     
    I did some modifications to also support the CC3200. Don't have a one wire sensor to test so whomever has a CC3200 and a one wire sensor, it would be great if you could test the attached!
     
    Robert
    OneWire.zip
  2. Like
    Govs reacted to Fmilburn in How to convert String to Float   
    Hello @@Govs
     
    You don't say in your post which LaunchPad you are using.  It is not documented on the Energia site but the toFloat() function works in Energia with the String class on at least some LaunchPads.
    // Energia example using the toFloat() function with the String class // Tested on MSP430F5529 and MSP430G2553 void setup() { Serial.begin(9600); } void loop() { String pi; pi = "3.14153"; double X = pi.toFloat(); Serial.print("Pi = "); Serial.println(X, 5); while(1) {} } EDIT:  I should add that there was a really good series of posts on 43oh recently here on how the String class can get you in trouble on a microcontroller....
×
×
  • Create New...