File tree Expand file tree Collapse file tree 10 files changed +106
-356
lines changed
Expand file tree Collapse file tree 10 files changed +106
-356
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ class chainStream:public Stream {
3131 for (int n=0 ;n<N;n++)
3232 if (streams[n]->available ()) {
3333 int key=streams[n]->read ();
34+ if (key==-1 ) return -1 ;
3435 while (streams[n]->peek ()==key) streams[n]->read ();// wait for key release
3536 return key;
3637 }
Original file line number Diff line number Diff line change 1+ /* *******************
2+ Arduino generic menu system
3+ Arduino menu on I2C LCD example
4+ http://www.r-site.net/?at=//op%5B%40id=%273090%27%5D
5+
6+ Sep.2014 Rui Azevedo - ruihfazevedo(@rrob@)gmail.com
7+ creative commons license 3.0: Attribution-ShareAlike CC BY-SA
8+ This software is furnished "as is", without technical support, and with no
9+ warranty, express or implied, as to its usefulness for any purpose.
10+
11+ Thread Safe: No
12+ Extensible: Yes
13+
14+ LCD library:
15+ https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home
16+ http://playground.arduino.cc/Code/LCD3wires
17+ */
118#include < Wire.h>
219#include < LiquidCrystal_I2C.h>
320#include < menu.h> // menu macros and objects
Original file line number Diff line number Diff line change 1- /* *****************
1+ /* *******************
2+ Arduino generic menu system
23LCD menu - unsing arduino classic LCD library
3- Rui Azevedo 2014
4- 5- ********/
4+ http://www.r-site.net/?at=//op%5B%40id=%273090%27%5D
5+
6+ Sept.2014 Rui Azevedo - ruihfazevedo(@rrob@)gmail.com
7+ creative commons license 3.0: Attribution-ShareAlike CC BY-SA
8+ This software is furnished "as is", without technical support, and with no
9+ warranty, express or implied, as to its usefulness for any purpose.
10+
11+ Thread Safe: No
12+ Extensible: Yes
13+
14+ */
615#include < HardwareSerial.h>
716#include < LiquidCrystal.h>
817#include < menu.h> // menu macros and objects
Original file line number Diff line number Diff line change 1- /* *****************
1+ /* *******************
2+ Arduino generic menu system
23GFX menu - unsing adafruit gfx screens
4+ http://www.r-site.net/?at=//op%5B%40id=%273090%27%5D
5+
6+ Sept. 2014 Rui Azevedo - ruihfazevedo(@rrob@)gmail.com
7+
8+ creative commons license 3.0: Attribution-ShareAlike CC BY-SA
9+ This software is furnished "as is", without technical support, and with no
10+ warranty, express or implied, as to its usefulness for any purpose.
11+
12+ Thread Safe: No
13+ Extensible: Yes
14+
15+ Adafruit GFX library from:
16+ https://learn.adafruit.com/adafruit-gfx-graphics-library/overview
17+ Display ST7735 driver
18+ http://www.adafruit.com/product/358
19+ ***/
20+ /* *****************
321Rui Azevedo 2014
422523********/
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments