Commit Graph

62 Commits

Author SHA1 Message Date
Cristian Maglie
7176168659 Added missing keyword in LiquidCrystal library 2014-11-07 19:24:12 +01:00
Cristian Maglie
b1f15314c1 Merge branch 'ide-1.5.x-lcd' of github.com:matthijskooijman/Arduino 2014-11-05 17:28:30 +01:00
Cristian Maglie
ec1cacefb6 Merge remote-tracking branch 'arduino/master' into ide-1.5.x 2014-07-24 14:46:05 +02:00
Cristian Maglie
6119788575 Merge pull request #2206 from amulya349/master
Fix of a bug #2199
2014-07-24 14:40:52 +02:00
Amulya Kumar Sahoo
14bda8dca4 Fix of a spelling mistake 2014-07-23 01:17:31 +05:30
Fede85
32c6f8c746 modified sentences in library.properties files 2014-07-18 19:41:34 +02:00
Ankit Daftery
a8a2e47a3f Update HelloWorld.ino
Adding power connections, just to be thorough
2014-07-03 13:08:12 +05:30
Cristian Maglie
e71db845e7 Updated all library.properties to 1.5 rev2 lib format 2014-02-18 22:32:24 +01:00
Matthijs Kooijman
dbb718a53e In LiquidCrystal, remove an unused variable 2013-12-18 13:09:48 +01:00
Matthijs Kooijman
c2a0d844b6 In LiquidCrystal::begin(), use a define instead of a hardcoded 0 2013-12-18 13:09:48 +01:00
Matthijs Kooijman
596e305a4d Support more LiquidCrystal displays out of the box
Previously, the row offsets were hardcoded to the ones used for 20x4
displays (which woudl also work for all 2-line displays). Now, the
number of columns given is used to calculate the offsets most likely to
apply.

For 2-line displays and 20x4 displays, the (used) offsets are completel
unchanged. With this change, common 16x4 displays and (if they even
exist) other 4-line and 3-line displays might also work (depending on
the hardware configuration used, of course).

See this page for some info on common LCD sizes and configurations
encountered in practice:

http://web.alfredstate.edu/weimandn/lcd/lcd_addressing/lcd_addressing_index.html
2013-12-18 13:09:48 +01:00
Matthijs Kooijman
beed8515f7 In LiquidCrystal::setCursor(), check against length of _row_offsets as well
Before, the row value was maximized against _numlines already, but the
value from _numlines is not limited anywhere, so it could be longer than
the length of _row_offsets. This check makes sure the array bounds is
never exceeded.
2013-12-18 13:09:48 +01:00
Matthijs Kooijman
cb0c50909f Make the LiquidCrystal row offsets uint8_t instead of int
Since these are memory addresses, there is no need to make them signed.
Furthermore, the HD44780 chip supports memory addresses up to 0x67, so
uint8_t shouldbe sufficient.
2013-12-18 13:09:48 +01:00
Mark Sproul
138bcb17c3 Added setRowOffsets to LiquidCrystal library
Original commit by Mark Sproul, but cleaned up by Matthijs Kooijman.
2013-12-18 13:09:48 +01:00
Cristian Maglie
5807f587f5 Merge branch 'master' into ide-1.5.x
Conflicts:
	build/shared/examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino
	build/shared/examples/09.USB/Keyboard/KeyboardMessage/KeyboardMessage.ino
	libraries/LiquidCrystal/examples/CustomCharacter/CustomCharacter.ino
	libraries/SD/examples/listfiles/listfiles.ino
2013-11-12 09:45:56 +01:00
Scott Fitzgerald
bd481b0c7b Modified LCD custom character example
moved lcd.begin() to the beginnng of the setup() and fixed an issue
that prevented the example from compiling. When calling lcd.write()
with an argument of 0, the 0 must be cast a s a byte.
2013-11-11 16:41:12 +04:00
Federico Fissore
40fd0b306a Fixed compilation errors with some examples 2013-10-21 13:16:51 +02:00
Federico Fissore
e0a4493868 Run new astyle formatter against all the examples 2013-10-21 09:58:40 +02:00
Cristian Maglie
998f9ce164 Updated libraries metadata 2013-08-08 16:40:55 +02:00
Fede85
c40724514c Ethernet, SD and LiquidCrystal to the new library format 2013-06-26 19:13:04 +02:00
Federico Fissore
29ed8df7e5 fixed permissions on a lot of text files. see #1116 2012-12-10 10:42:49 +01:00
Cristian Maglie
b2cbc5eb4c LiquidCrystal library is already multiplatform compliant, moved into libraries folder 2012-09-03 16:13:28 +02:00
Cristian Maglie
e3d0d0d836 Merge of arduino-1.0.1. Work in progress... 2012-05-23 09:22:52 +02:00
Federico Vanzati
b57bba1cfc updated URLs in LiquidCrystal examples 2012-04-11 12:56:31 +02:00
Cristian Maglie
904942006e Moved libraries folder inside platform folder. Now libraries and examples are searched per board/platform 2012-01-04 15:14:51 +01:00
Zach Eveland
84638cbd98 Revert "Merge branch 'master' of github.com:arduino/Arduino into diskloader_reboot"
This reverts commit df9835efafd13685251749bc210c0b96a18a96a5, reversing
changes made to ec45af8bfa9222a807c075dd1db4b5aa798bba03.

Conflicts:

	hardware/arduino/variants/mega/pins_arduino.h
	libraries/Ethernet/examples/PachubeClientString/PachubeClientString.ino
2011-10-27 11:45:13 -04:00
Zach Eveland
ed3c7de46f Merge branch 'master' of github.com:arduino/Arduino into diskloader_reboot
Conflicts:
	app/src/processing/app/Editor.java
	app/src/processing/app/Sketch.java
	build/shared/examples/4.Communication/SerialCallResponse/SerialCallResponse.pde
	build/shared/lib/theme/theme.txt
	hardware/arduino/cores/arduino/HardwareSerial.h
	hardware/arduino/cores/arduino/Print.cpp
	hardware/arduino/cores/arduino/WString.h
	hardware/arduino/variants/mega/pins_arduino.h
	libraries/Ethernet/examples/PachubeClient/PachubeClient.ino
	libraries/Ethernet/examples/PachubeClientString/PachubeClientString.ino
	libraries/Firmata/examples/EchoString/EchoString.ino
	libraries/SD/File.cpp
	libraries/SoftwareSerial/SoftwareSerial.cpp
	libraries/SoftwareSerial/SoftwareSerial.h
	libraries/SoftwareSerial/examples/SoftwareSerialExample/SoftwareSerialExample.ino
	libraries/SoftwareSerial/keywords.txt
2011-10-27 09:32:27 -04:00
David A. Mellis
247e3b8be0 Fixing bug in LiquidCrystal::setCursor() for row == numrows.
http://code.google.com/p/arduino/issues/detail?id=671
2011-10-10 12:35:36 -04:00
David A. Mellis
b90a84c763 Making Print::write(char *) non-virtual.
http://code.google.com/p/arduino/issues/detail?id=607
2011-09-07 18:41:05 -04:00
Tom Igoe
6530a3b218 Changed all .pde examples to .ino
All examples in /build/shared/examples/ and /libraries/ have had their
extensions changed to .ino
2011-08-30 15:33:32 -04:00
David A. Mellis
856e5dcfa4 Moving write errors out of return value into separate API methods.
write(), print(), println() now return size_t (and don't use negative values to signal errors).
Print adds writeError() for checking for write errors, clearWriteError() to reset the flag to false, and a protected setWriteError() for signalling errors.

http://code.google.com/p/arduino/issues/detail?id=598
2011-08-26 16:08:14 -04:00
David A. Mellis
39582bc7a9 Changing from long to ssize_t (int) for write(), print(), println() return. 2011-08-26 14:20:41 -04:00
David A. Mellis
46ff301e25 write(), print(), and println() now return number of bytes written.
The type is long, and negative values indicate errors.  Needs more testing.
http://code.google.com/p/arduino/issues/detail?id=551
2011-08-23 19:12:03 -04:00
Tom Igoe
f3ea1afd04 Added example to demonstrate LiquidCrystal chreateChar() function 2011-05-12 17:03:07 -04:00
Tom Igoe
1a9759a112 Added example to demonstrate LiquidCrystal chreateChar() function 2011-03-21 12:27:18 -04:00
David A. Mellis
e152e12bf9 Renamed WProgram.h to Arduino.h. 2011-03-01 19:52:13 -05:00
David A. Mellis
4eac8d4769 Modifying examples to use Serial.write() instead of Serial.print(BYTE). 2011-02-26 14:04:41 -05:00
David A. Mellis
eecd3b3f43 Modifying examples to use Serial.write() instead of Serial.print(BYTE). 2011-02-26 13:57:41 -05:00
David A. Mellis
a5ac9a7aa7 Merge branch 'master' of https://github.com/joshnuss/Arduino 2010-11-27 12:01:35 -06:00
Tom Igoe
a2ce323bae fixed comments in LIquidCrystal examples per issue 402 2010-11-22 09:36:23 -05:00
Joshua Nussbaum
8ea7c002c5 When initializing LCD, comment specified "8-bit" mode when it should day "4 bit mode" 2010-10-01 00:26:40 -07:00
David A. Mellis
338f67fa3c No longer requiring WProgram.h for Print / Stream classes (replaced Arduino-specific type names in String). 2010-08-06 01:23:19 +00:00
David A. Mellis
6d2658c036 Adding #include <WProgram.h>. 2010-08-02 22:22:51 +00:00
Tom Igoe
67133486a3 Added public domain notice 2010-02-24 03:49:03 +00:00
Tom Igoe
cd518fbf5c Added public domain notice 2010-02-24 03:48:54 +00:00
Tom Igoe
e2e448b49e Added public domain notice 2010-02-24 03:48:44 +00:00
Tom Igoe
20b258275d Added public domain notice 2010-02-24 03:48:43 +00:00
Tom Igoe
be83c22a9a Added public domain notice 2010-02-24 03:48:38 +00:00
Tom Igoe
04ab873ee0 Added public domain notice 2010-02-24 03:48:34 +00:00
Tom Igoe
1c469e2182 Added public domain notice 2010-02-24 03:48:28 +00:00