Skip to content

Commit

Permalink
Base changes to use LCD library
Browse files Browse the repository at this point in the history
  • Loading branch information
prampec committed May 26, 2015
1 parent b9042ae commit 43810fb
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 248 deletions.
164 changes: 0 additions & 164 deletions LcdBarGraph.cpp

This file was deleted.

72 changes: 0 additions & 72 deletions LcdBarGraph.h

This file was deleted.

4 changes: 2 additions & 2 deletions examples/AnalogVisualization/AnalogVisualization.pde
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#include <LiquidCrystal.h>
#include <LcdBarGraph.h>
#include <LcdBarGraphX.h>

byte lcdNumCols = 16; // -- number of columns in the LCD
byte sensorPin = 0; // -- value for this example

LiquidCrystal lcd(12, 11, 5, 4, 3, 2); // -- creating LCD instance
LcdBarGraph lbg(&lcd, lcdNumCols); // -- creating
LcdBarGraphX lbg(&lcd, lcdNumCols); // -- creating

void setup(){
// -- initializing the LCD
Expand Down
14 changes: 7 additions & 7 deletions examples/MoreGraphs/MoreGraphs.ino
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#include <LiquidCrystal.h>
#include <LcdBarGraph.h>
#include <LcdBarGraphX.h>

byte lcdNumCols = 16; // -- number of columns in the LCD

LiquidCrystal lcd(12, 11, 5, 4, 3, 2); // -- creating LCD instance
// -- creating a 4 chars wide bars
LcdBarGraph lbg0(&lcd, 4, 0, 0); // -- First line at column 0
LcdBarGraph lbg1(&lcd, 4, 5, 0); // -- First line at column 5
LcdBarGraph lbg2(&lcd, 4, 10, 0); // -- First line at column 10
LcdBarGraph lbg3(&lcd, 4, 0, 1); // -- Second line at column 0
LcdBarGraph lbg4(&lcd, 4, 5, 1); // -- Second line at column 5
LcdBarGraph lbg5(&lcd, 4, 10, 1); // -- Second line at column 0
LcdBarGraphX lbg0(&lcd, 4, 0, 0); // -- First line at column 0
LcdBarGraphX lbg1(&lcd, 4, 5, 0); // -- First line at column 5
LcdBarGraphX lbg2(&lcd, 4, 10, 0); // -- First line at column 10
LcdBarGraphX lbg3(&lcd, 4, 0, 1); // -- Second line at column 0
LcdBarGraphX lbg4(&lcd, 4, 5, 1); // -- Second line at column 5
LcdBarGraphX lbg5(&lcd, 4, 10, 1); // -- Second line at column 0

byte i0 = 0;
byte i1 = 0;
Expand Down
4 changes: 2 additions & 2 deletions examples/PositionVisualization/PositionVisualization.pde
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#include <LiquidCrystal.h>
#include <LcdBarGraph.h>
#include <LcdBarGraphX.h>

byte lcdNumCols = 16; // -- number of columns in the LCD
byte sensorPin = 0; // -- value for this example

LiquidCrystal lcd(12, 11, 5, 4, 3, 2); // -- creating LCD instance
LcdBarGraph lbg(&lcd, 4, 12, 1); // -- creating a 4 char wide baraph in the end of second column (column 1)
LcdBarGraphX lbg(&lcd, 4, 12, 1); // -- creating a 4 char wide baraph in the end of second column (column 1)

void setup(){
// -- initializing the LCD
Expand Down
3 changes: 2 additions & 1 deletion keywords.txt
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
# Datatypes (KEYWORD1)
#######################################

LcdBarGraph KEYWORD1
LcdBarGraphX KEYWORD1

#######################################
# Methods and Functions (KEYWORD2)
#######################################

drawValue KEYWORD2
begin KEYWORD2

#######################################
# Constants (LITERAL1)
Expand Down

0 comments on commit 43810fb

Please sign in to comment.