File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
CLUE/CLUE_Servo_Barometer
PicoW_CircuitPython_HTTP_Server
PyPortal/PyPortal_Alarm_Clock Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 5858
5959display .root_group = group
6060
61- # function to convert celcius to fahrenheit
61+ # function to convert celsius to fahrenheit
6262def c_to_f (temp ):
6363 temp_f = (temp * 9 / 5 ) + 32
6464 return temp_f
@@ -87,12 +87,12 @@ def hpa_to_inHg(hPa):
8787 print (servo_value )
8888 # if metric units...
8989 if metric_units :
90- # update temp & pressure text in celcius and hPa
90+ # update temp & pressure text in celsius and hPa
9191 temp_data .text = "%0.1f ºC" % bmp280 .temperature
9292 press_data .text = "%0.1f hPa" % bmp280 .pressure
9393 # if imperial units...
9494 else :
95- # convert celcius to fahrenheit
95+ # convert celsius to fahrenheit
9696 temp_fahrenheit = c_to_f (bmp280 .temperature )
9797 # convert hPa to inHg
9898 pressure_inHg = hpa_to_inHg (bmp280 .pressure )
Original file line number Diff line number Diff line change 2323# For the Gemma M0 onboard DotStar LED
2424dotstar = adafruit_dotstar .DotStar (board .APA102_SCK , board .APA102_MOSI , 1 )
2525
26- def deg_f (deg_c ): # Convert Celcius to Fahrenheit
26+ def deg_f (deg_c ): # Convert celsius to Fahrenheit
2727 return (deg_c * 9 / 5 ) + 32.0
2828
2929while True :
Original file line number Diff line number Diff line change 3737# scan for temp sensor
3838ds18 = DS18X20 (ow_bus , ow_bus .scan ()[0 ])
3939
40- # function to convert celcius to fahrenheit
40+ # function to convert celsius to fahrenheit
4141def c_to_f (temp ):
4242 temp_f = (temp * 9 / 5 ) + 32
4343 return temp_f
Original file line number Diff line number Diff line change 8585
8686icon_file = None
8787icon_sprite = None
88- celcius = getenv ('celcius ' )
88+ celsius = getenv ('celsius ' )
8989
9090# display/data refresh timers
9191
@@ -294,7 +294,7 @@ def tick(self, now):
294294 self .weather_icon .append (icon_sprite )
295295
296296 temperature = weather ['main' ]['temp' ] - 273.15 # its...in kelvin
297- if celcius :
297+ if celsius :
298298 temperature_text = '%3d C' % round (temperature )
299299 else :
300300 temperature_text = '%3d F' % round (((temperature * 9 / 5 ) + 32 ))
You can’t perform that action at this time.
0 commit comments