File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
CircuitPython_WeatherCloud Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 21
21
button = digitalio .DigitalInOut (board .A1 )
22
22
button .switch_to_input (pull = digitalio .Pull .UP )
23
23
24
- wave_file = open ("sound/Rain.wav" , "rb" ) # pylint: disable=consider-using-with
24
+ wave_file = open ("sound/Rain.wav" , "rb" )
25
25
wave = audiocore .WaveFile (wave_file )
26
26
audio = audioio .AudioOut (board .A0 )
27
27
159
159
wave_filename = "sound/Snow.wav"
160
160
snowing = True
161
161
if wave_filename :
162
- wave_file = open (wave_filename , "rb" ) # pylint: disable=consider-using-with
162
+ wave_file = open (wave_filename , "rb" )
163
163
wave = audiocore .WaveFile (wave_file )
164
164
has_sound = True
165
165
weather_refresh = time .monotonic ()
212
212
elif Thunder == 2 :
213
213
wave_filename = "sound/Thunderstorm2.wav"
214
214
if wave_filename :
215
- wave_file = open (wave_filename , "rb" ) # pylint: disable=consider-using-with
215
+ wave_file = open (wave_filename , "rb" )
216
216
wave = audiocore .WaveFile (wave_file )
217
217
audio .play (wave )
218
218
next_bolt_time = time .monotonic () + random .randint (5 , 15 ) # between 5 and 15 s
You can’t perform that action at this time.
0 commit comments