Go Down

Topic: "Correct" method for migrating libs to Arduino 1.0 (Read 5106 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy