Pages: 1 [2]   Go Down
Author Topic: "Correct" method for migrating libs to Arduino 1.0  (Read 4820 times)
0 Members and 1 Guest are viewing this topic.
Central MN, USA
Offline Offline
Tesla Member
***
Karma: 75
Posts: 7268
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged


0
Offline Offline
God Member
*****
Karma: 26
Posts: 625
Always making something...
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


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
Logged

Pages: 1 [2]   Go Up
Jump to: