Hallo I have a question about the ‘speed’ at which Arduino communicates with the LCD shield.
I have this LCD shield http://www.nuelectronics.com/estore/index.php?main_page=product_info&products_id=2
I use this code:
LCD4Bit_mod lcd = LCD4Bit_mod(2);
char buf; // int has up to 5 digits plus terminating 0
int val = 0;
- lcd.printIn(itoa(val, buf, 10));*
- val = val + 1;*
You see it displays the value of ‘val’ on-screen. Which works good.
The code takes the value of ‘val’ and counts (adds) 1 to it each loop.
The code is not limited by any delay() or something, so it should run as fast as it can.
But when I run the code the counting val on screen it somewhat slow, meaning that it takes about a second to count from 0 to 100. So why is this calculation so slow? Is the LCD communication hindering the code to run fast, I mean it should be able to count much much faster right?