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 2121button = digitalio .DigitalInOut (board .A1 )
2222button .switch_to_input (pull = digitalio .Pull .UP )
2323
24- wave_file = open ("sound/Rain.wav" , "rb" ) # pylint: disable=consider-using-with
24+ wave_file = open ("sound/Rain.wav" , "rb" )
2525wave = audiocore .WaveFile (wave_file )
2626audio = audioio .AudioOut (board .A0 )
2727
159159 wave_filename = "sound/Snow.wav"
160160 snowing = True
161161 if wave_filename :
162- wave_file = open (wave_filename , "rb" ) # pylint: disable=consider-using-with
162+ wave_file = open (wave_filename , "rb" )
163163 wave = audiocore .WaveFile (wave_file )
164164 has_sound = True
165165 weather_refresh = time .monotonic ()
212212 elif Thunder == 2 :
213213 wave_filename = "sound/Thunderstorm2.wav"
214214 if wave_filename :
215- wave_file = open (wave_filename , "rb" ) # pylint: disable=consider-using-with
215+ wave_file = open (wave_filename , "rb" )
216216 wave = audiocore .WaveFile (wave_file )
217217 audio .play (wave )
218218 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