Trim trailing whitespace from example Micropython code
rodzic
712964b1d9
commit
609ab9c79f
|
@ -3,7 +3,6 @@ from machine import I2C, ADC
|
||||||
from sh1106 import SH1106_I2C
|
from sh1106 import SH1106_I2C
|
||||||
import framebuf
|
import framebuf
|
||||||
|
|
||||||
|
|
||||||
WIDTH = 128 # oled display width
|
WIDTH = 128 # oled display width
|
||||||
HEIGHT = 128 # oled display height
|
HEIGHT = 128 # oled display height
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,6 @@ def wheel(pos):
|
||||||
pos -= 170
|
pos -= 170
|
||||||
return (pos * 3, 0, 255 - pos * 3)
|
return (pos * 3, 0, 255 - pos * 3)
|
||||||
|
|
||||||
|
|
||||||
def rainbow_cycle(wait):
|
def rainbow_cycle(wait):
|
||||||
for j in range(255):
|
for j in range(255):
|
||||||
for i in range(NUM_LEDS):
|
for i in range(NUM_LEDS):
|
||||||
|
|
Ładowanie…
Reference in New Issue