User Tools

Site Tools


arduino:displays_for_classic_arduinos:display_character_20x4_counter.ino

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

arduino:displays_for_classic_arduinos:display_character_20x4_counter.ino [2018/01/29 22:33] – created mithatarduino:displays_for_classic_arduinos:display_character_20x4_counter.ino [2018/02/01 18:33] (current) mithat
Line 9: Line 9:
    Notes:    Notes:
    Consumes 15% of program storage space and    Consumes 15% of program storage space and
-   6% of dynamic memory on a Nano.   +   4% of dynamic memory on a Nano.    
 + 
 +   Render time with a 16 MHz processor is around 
 +   14 msec, independent of LOOP_DELAY but dependent on 
 +   the number of characters being drawn.
 */ */
  
Line 48: Line 52:
 void setup(void) { void setup(void) {
   bigCrystal.begin(20, 4);   bigCrystal.begin(20, 4);
-  bigCrystal.print("20x4 char (parallel)");+  bigCrystal.print(F("20x4 char (parallel)"));
  
   // print legend(s)   // print legend(s)
   bigCrystal.setCursor(0, 1);   bigCrystal.setCursor(0, 1);
-  bigCrystal.print("Render time:");+  bigCrystal.print(F("Render time:"));
 } }
  
Line 65: Line 69:
   bigCrystal.print(now - then - LOOP_DELAY);   bigCrystal.print(now - then - LOOP_DELAY);
   bigCrystal.setCursor(16, 1);      // print units   bigCrystal.setCursor(16, 1);      // print units
-  bigCrystal.print("msec");+  bigCrystal.print(F("msec"));
  
   // print a big counter   // print a big counter
Line 72: Line 76:
   bigCrystal.printBig(dispStr, 0, 2);   bigCrystal.printBig(dispStr, 0, 2);
  
-  /* Render time with a 16 MHz processor is around 
-   * 14 msec, independent of LOOP_DELAY but dependent on 
-   * the number of characters being drawn. */ 
   delay(LOOP_DELAY);   delay(LOOP_DELAY);
 } }
 </file> </file>
arduino/displays_for_classic_arduinos/display_character_20x4_counter.ino.1517265186.txt.gz · Last modified: 2018/01/29 22:33 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki