arduino:displays_for_classic_arduinos:display_character_20x4_counter.ino
Differences
This shows you the differences between two versions of the page.
arduino:displays_for_classic_arduinos:display_character_20x4_counter.ino [2018/01/29 22:33] – created mithat | arduino:displays_for_classic_arduinos:display_character_20x4_counter.ino [2018/02/01 18:33] (current) – mithat | ||
---|---|---|---|
Line 9: | Line 9: | ||
| | ||
| | ||
- | 6% of dynamic memory on a Nano. | + | 4% of dynamic memory on a Nano. |
+ | |||
+ | | ||
+ | 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, | bigCrystal.begin(20, | ||
- | bigCrystal.print(" | + | bigCrystal.print(F("20x4 char (parallel)" |
// print legend(s) | // print legend(s) | ||
bigCrystal.setCursor(0, | bigCrystal.setCursor(0, | ||
- | bigCrystal.print(" | + | bigCrystal.print(F(" |
} | } | ||
Line 65: | Line 69: | ||
bigCrystal.print(now - then - LOOP_DELAY); | bigCrystal.print(now - then - LOOP_DELAY); | ||
bigCrystal.setCursor(16, | bigCrystal.setCursor(16, | ||
- | bigCrystal.print(" | + | bigCrystal.print(F(" |
// print a big counter | // print a big counter | ||
Line 72: | Line 76: | ||
bigCrystal.printBig(dispStr, | bigCrystal.printBig(dispStr, | ||
- | /* 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); | ||
} | } | ||
</ | </ |
arduino/displays_for_classic_arduinos/display_character_20x4_counter.ino.1517265186.txt.gz · Last modified: 2018/01/29 22:33 by mithat