I am trying to create a function that will scroll some string across an LCD panel and have got it to work on a timer included in my PIC16F1937. My problem comes from my counting variables. I define them in my header file to make them global so the values will be saved after leaving my function. However when I exit the function and it returns to the file the values are redefined to the original values. I'm trying to find a trick to define them once in the header file with some starting values and from there have it skip that part in the header file. Any suggestions? A note to keep in mind, I am running low on memory on the chip.
-
Categories
-
Platforms
-
Content