Decreases animation speed by 1 amount stopping at 0 :param step:
(self)
| 180 | self.val += 1 |
| 181 | |
| 182 | def decrease_ani(self): |
| 183 | ''' |
| 184 | Decreases animation speed by 1 amount stopping at 0 |
| 185 | :param step: |
| 186 | ''' |
| 187 | if (self.val - 1) <= 0: |
| 188 | self.val = 0 |
| 189 | else: |
| 190 | self.val -= 1 |
| 191 | |
| 192 | def effect_breathing(self): |
| 193 | # http://sean.voisen.org/blog/2011/10/breathing-led-with-arduino/ |