File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 48
48
#pylint: disable=wrong-import-position
49
49
import sys
50
50
from types import ModuleType
51
- mock_neopixel_write = ModuleType ('mock_neopixel_write' )
52
- exec ('def neopixel_write(): pass' , mock_neopixel_write .__dict__ )
53
- sys .modules ['neopixel_write' ] = mock_neopixel_write
51
+ mock_module = ModuleType ('mock_neopixel_write' )
52
+ exec ('def neopixel_write(): pass' , mock_module .__dict__ )
53
+ sys .modules ['neopixel_write' ] = mock_module
54
54
#pylint: enable=wrong-import-position
55
55
56
56
from neopixel import NeoPixel
68
68
GRBW = (1 , 0 , 2 , 3 )
69
69
"""Green Red Blue White"""
70
70
71
- def neopixel_write ():
72
- """This is a stub function to satisfy the base NeoPixel library.
73
- It should never be called.
74
- """
75
- raise RuntimeError ("Function should never be called." )
76
-
77
71
class NeoPixel_SPI (NeoPixel ):
78
72
"""
79
73
A sequence of neopixels.
You can’t perform that action at this time.
0 commit comments