Your values are larger than a BYTE.FLASH_ON VAR BYTE
FLASH_OFF VAR BYTE
Your values are larger than a BYTE.FLASH_ON VAR BYTE
FLASH_OFF VAR BYTE
Dave
Always wear safety glasses while programming.
Yeah, they need to be WORD-size variables to fit values larger than 255....
But if you're not going to change the value at runtime there's no real need to have them as variables, you might as well make them constants:Saves on both RAM and flash memory.Code:FLASH_ON CON 1500 FLASH_OFF CON 500
Thanks all! I'll use constants for now but eventually it will read from a pot input.
Bookmarks