Skip to content

Commit f9a414d

Browse files
committed
Secrets Cleanup: P Part 2
- fix typos celcius to celsius
1 parent 2b5fd71 commit f9a414d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

CLUE/CLUE_Servo_Barometer/code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
display.root_group = group
6060

61-
# function to convert celcius to fahrenheit
61+
# function to convert celsius to fahrenheit
6262
def 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)

GemmaM0_Headband/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# For the Gemma M0 onboard DotStar LED
2424
dotstar = 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

2929
while True:

PicoW_CircuitPython_HTTP_Server/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# scan for temp sensor
3838
ds18 = DS18X20(ow_bus, ow_bus.scan()[0])
3939

40-
# function to convert celcius to fahrenheit
40+
# function to convert celsius to fahrenheit
4141
def c_to_f(temp):
4242
temp_f = (temp * 9/5) + 32
4343
return temp_f

PyPortal/PyPortal_Alarm_Clock/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585

8686
icon_file = None
8787
icon_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))

0 commit comments

Comments
 (0)