Assuming that each of the hours and minutes are bytes and PWM value is a word, the write command will fill up 6 bytes on each pass. So, the code would become
OR you could also do thisCode:address =$50 for counterd = 0 to 15 write (address + (counterD*6)),lightsetHR(counterD),lightsetMN(counterD),lighto ffHR(counterD),lightoffMN(counterD),fadeset(counte rD) next counterD
Code:address =$50 for counterd = 0 to 15 write (address),lightsetHR(counterD),lightsetMN(counterD),lighto ffHR(counterD),lightoffMN(counterD),fadeset(counte rD) address = address+6 ' account for the data already filled into the storage next counterD




Bookmarks