Home > other >  How to change water lights flashing speed and direction?
How to change water lights flashing speed and direction?

Time:09-24

Please give specific code changes, thank you, and please note after 4999999 changed little flicker frequency is faster or slower, what unit of time, thank you!

CodePudding user response:

1. The blink rate
Change
 parameter END_CNT_1S=2499999 
flicker frequency to speed up the double
Change the
 parameter END_CNT_1S=9999999 
flicker frequency twice as slow

Direction
2.
 
Case (led)
4 'b1000: led...
4 'b0100: led...
4 'b0010: led...
4 'b0001: led...
Default: led...
Endcase


3. See question 1

CodePudding user response:

Change 4999999 is the flicker frequency, the smaller the higher the frequency, time unit is END_CNT_1S/CLK
  • Related