Go Down

Topic: "Correct" method for migrating libs to Arduino 1.0 (Read 5053 times) previous topic - next topic

liudr


BTW, Serial.write(byte) (and other Print sub-classes) should work in 0022 /0023 as well as 1.0.  So if you have code that currently does Serial.print(n, BYTE), you should be able to change it to Serial.write() and maintain compatibility. 


Great! Thanks. I'm not using print(n, BYTE) but I'll write a blog post on how to do the library conversion with what you mentioned above. I'm sure someone will need to do it for some libraries.

Paul Stoffregen



I'm stuck on why using write('\0') won't work in 1.0



I recently fixed this in LiquidCrystalFast, version 1.1.

http://www.pjrc.com/teensy/td_libs_LiquidCrystal.html

This same problem was recently fixed in Wire (will become part of Arduino 1.0.1)

https://github.com/arduino/Arduino/commit/6a6ed3d10ad1470283d7771906ce81ad97fa06f0

Go Up