Andrey Kotov / N5110

Fork of N5110 by Craig Evans

Files at this revision

API Documentation at this revision

Comitter:
andreykotov91
Date:
Fri May 06 20:00:52 2016 +0000
Parent:
19:ba8addc061ea
Commit message:
Adapted for use with my project

Changed in this revision

N5110.cpp Show annotated file Show diff for this revision Revisions of this file
N5110.h Show annotated file Show diff for this revision Revisions of this file
diff -r ba8addc061ea -r de191597da42 N5110.cpp
--- a/N5110.cpp	Thu Apr 23 18:57:52 2015 +0000
+++ b/N5110.cpp	Fri May 06 20:00:52 2016 +0000
@@ -87,7 +87,7 @@
 }
 
 // function to change LED backlight brightness
-void N5110::setBrightness(float brightness)
+void N5110::setBrightness(double brightness)
 {
     // check whether brightness is within range
     if (brightness < 0.0)
@@ -282,7 +282,7 @@
 }
 
 // function to plot array on display
-void N5110::plotArray(float array[])
+void N5110::plotArray(double array[])
 {
 
     int i;
diff -r ba8addc061ea -r de191597da42 N5110.h
--- a/N5110.h	Thu Apr 23 18:57:52 2015 +0000
+++ b/N5110.h	Fri May 06 20:00:52 2016 +0000
@@ -210,7 +210,7 @@
     *   Sets brightness of LED backlight.
     *   @param brightness - float in range 0.0 to 1.0
     */
-    void setBrightness(float brightness);
+    void setBrightness(double brightness);
 
     /** Print String
     *
@@ -278,7 +278,7 @@
     *   This function plots a one-dimensional array on the display.
     *   @param array[] - y values of the plot. Values should be normalised in the range 0.0 to 1.0. First 84 plotted.
     */
-    void plotArray(float array[]);
+    void plotArray(double array[]);
 
     /** Draw Circle
     *