String vs. string
i see mentioned on board @ least every other day - using strings rather strings can cause heap big trouble. because strings exist in program or, problems arise when strings manipulated?
in snippet attached strings used print menu text. potential trouble?
youtube link source tutorial
in snippet attached strings used print menu text. potential trouble?
code: [select]
string screens[numofscreens][2] = {{"motor voltage","volts"}, {"motor current", "amps"},
{"motor rated hp","hp"},{"overload temp.","degc"}, {"accel time", "secs"}, {"restart time","mins"},
{"analog out. curr.","ma"},{"input temp.","degc"}, {"run time", "hours"}, {"start times","times"}};
youtube link source tutorial
those ok question becomes why use string there anyway. there's no advantage on char arrays. , char arrays use less ram.
Arduino Forum > Using Arduino > Programming Questions > String vs. string
arduino
Comments
Post a Comment