diff --git a/README.md b/README.md index 31e1244..9409d74 100644 --- a/README.md +++ b/README.md @@ -25,12 +25,12 @@ Arduino library for MicroView. #include <MicroView.h> void setup() { - uView.begin(); + uView.begin(); } void loop() { - uView.print("HelloWorld"); - uView.display(); // display current page buffer + uView.print("HelloWorld"); + uView.display(); // display current page buffer } @@ -39,18 +39,18 @@ void loop() { #include <MicroView.h> void setup() { - uView.begin(); - uView.clear(PAGE); // clear the page buffer + uView.begin(); + uView.clear(PAGE); // clear the page buffer } void loop() { - uView.line(0,0,64,48); - uView.circle(32,24,10); - uView.rect(10,10,20,20); - uView.pixel(50,5); - uView.setCursor(0,40); - uView.print(" MicroView"); - uView.display(); // display current page buffer + uView.line(0,0,64,48); + uView.circle(32,24,10); + uView.rect(10,10,20,20); + uView.pixel(50,5); + uView.setCursor(0,40); + uView.print(" MicroView"); + uView.display(); // display current page buffer } @@ -61,18 +61,18 @@ void loop() { MicroViewWidget *widget,*widget2; void setup() { - uView.begin(); - uView.clear(PAGE); - widget= new MicroViewGauge(32,30,0,100); // draw Gauge widget at x=32,y=30,min=0, max=100 - widget2= new MicroViewSlider(0,0,0,100); // draw Slider widget at x=0,y=0,min=0, max=100 + uView.begin(); + uView.clear(PAGE); + widget= new MicroViewGauge(32,30,0,100); // draw Gauge widget at x=32,y=30,min=0, max=100 + widget2= new MicroViewSlider(0,0,0,100); // draw Slider widget at x=0,y=0,min=0, max=100 } void loop() { - for(int i=0; i<=100;i++) { - widget->setValue(i); // give a value to widget - widget2->setValue(i); - uView.display(); // display current page buffer - } + for(int i=0; i<=100;i++) { + widget->setValue(i); // give a value to widget + widget2->setValue(i); + uView.display(); // display current page buffer + } } @@ -81,12 +81,12 @@ void loop() { #include <MicroView.h> void setup() { - uView.begin(); - uView.clear(PAGE); + uView.begin(); + uView.clear(PAGE); } void loop() { - uView.checkComm(); + uView.checkComm(); } @@ -169,4 +169,4 @@ void loop() { GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . \ No newline at end of file + along with this program. If not, see .