diff --git a/adt7410/adt7410.go b/adt7410/adt7410.go index bdd6c6d..e6cf565 100644 --- a/adt7410/adt7410.go +++ b/adt7410/adt7410.go @@ -57,7 +57,7 @@ func (dev *Device) Configure() (err error) { } -// ReadTemperature returns the temperature in celsius milli degrees (ºC/1000) +// ReadTemperature returns the temperature in celsius milli degrees (°C/1000) func (d *Device) ReadTemperature() (temperature int32, err error) { return (int32(d.readUint16(RegTempValueMSB)) * 1000) / 128, nil } diff --git a/bme280/bme280.go b/bme280/bme280.go index 6c9f5d1..50e785a 100644 --- a/bme280/bme280.go +++ b/bme280/bme280.go @@ -112,7 +112,7 @@ func (d *Device) Reset() { d.bus.WriteRegister(uint8(d.Address), CMD_RESET, []byte{0xB6}) } -// ReadTemperature returns the temperature in celsius milli degrees (ºC/1000) +// ReadTemperature returns the temperature in celsius milli degrees (°C/1000) func (d *Device) ReadTemperature() (int32, error) { data, err := d.readData() if err != nil { diff --git a/bmp180/bmp180.go b/bmp180/bmp180.go index 4d86f4a..ee46beb 100644 --- a/bmp180/bmp180.go +++ b/bmp180/bmp180.go @@ -80,7 +80,7 @@ func (d *Device) Configure() { d.calibrationCoefficients.md = readInt(data[20], data[21]) } -// ReadTemperature returns the temperature in celsius milli degrees (ºC/1000). +// ReadTemperature returns the temperature in celsius milli degrees (°C/1000). func (d *Device) ReadTemperature() (temperature int32, err error) { rawTemp, err := d.rawTemp() if err != nil { diff --git a/drivers.go b/drivers.go index d0a2577..a158d9a 100644 --- a/drivers.go +++ b/drivers.go @@ -26,7 +26,7 @@ // // for { // temp, _ := sensor.ReadTemperature() -// println("Temperature:", float32(temp)/1000, "ºC") +// println("Temperature:", float32(temp)/1000, "°C") // // pressure, _ := sensor.ReadPressure() // println("Pressure", float32(pressure)/100000, "hPa") diff --git a/examples/bme280/main.go b/examples/bme280/main.go index c6d8a06..3b7d333 100644 --- a/examples/bme280/main.go +++ b/examples/bme280/main.go @@ -22,7 +22,7 @@ func main() { for { temp, _ := sensor.ReadTemperature() - println("Temperature:", strconv.FormatFloat(float64(temp)/1000, 'f', 2, 64), "ºC") + println("Temperature:", strconv.FormatFloat(float64(temp)/1000, 'f', 2, 64), "°C") press, _ := sensor.ReadPressure() println("Pressure:", strconv.FormatFloat(float64(press)/100000, 'f', 2, 64), "hPa") hum, _ := sensor.ReadHumidity() diff --git a/examples/bmp180/main.go b/examples/bmp180/main.go index 38ab21d..9b4e34d 100644 --- a/examples/bmp180/main.go +++ b/examples/bmp180/main.go @@ -22,7 +22,7 @@ func main() { for { temp, _ := sensor.ReadTemperature() - println("Temperature:", float32(temp)/1000, "ºC") + println("Temperature:", float32(temp)/1000, "°C") pressure, _ := sensor.ReadPressure() println("Pressure", float32(pressure)/100000, "hPa") diff --git a/examples/ds3231/main.go b/examples/ds3231/main.go index 766c194..7046a9d 100644 --- a/examples/ds3231/main.go +++ b/examples/ds3231/main.go @@ -38,7 +38,7 @@ func main() { fmt.Printf("Date: %d/%s/%02d %02d:%02d:%02d \r\n", dt.Year(), dt.Month(), dt.Day(), dt.Hour(), dt.Minute(), dt.Second()) } temp, _ := rtc.ReadTemperature() - fmt.Printf("Temperature: %.2f ºC \r\n", float32(temp)/1000) + fmt.Printf("Temperature: %.2f °C \r\n", float32(temp)/1000) time.Sleep(time.Second * 1) } diff --git a/examples/mag3110/main.go b/examples/mag3110/main.go index a5f32b0..34f12ae 100644 --- a/examples/mag3110/main.go +++ b/examples/mag3110/main.go @@ -19,7 +19,7 @@ func main() { println("Magnetic readings:", x, y, z) c, _ := mag.ReadTemperature() - println("Temperature:", float32(c)/1000, "ºC") + println("Temperature:", float32(c)/1000, "°C") time.Sleep(time.Millisecond * 100) } diff --git a/examples/sht3x/main.go b/examples/sht3x/main.go index 0ad4c9e..145f424 100644 --- a/examples/sht3x/main.go +++ b/examples/sht3x/main.go @@ -16,7 +16,7 @@ func main() { temp, humidity, _ := sensor.ReadTemperatureHumidity() t := fmt.Sprintf("%.2f", float32(temp)/1000) h := fmt.Sprintf("%.2f", float32(humidity)/100) - println("Temperature:", t, "ºC") + println("Temperature:", t, "°C") println("Humidity", h, "%") time.Sleep(2 * time.Second) } diff --git a/examples/thermistor/main.go b/examples/thermistor/main.go index 2eed105..0326d20 100644 --- a/examples/thermistor/main.go +++ b/examples/thermistor/main.go @@ -19,7 +19,7 @@ func main() { for { temp, _ := sensor.ReadTemperature() - println("Temperature:", temp/1000, "ºC") + println("Temperature:", temp/1000, "°C") time.Sleep(2 * time.Second) } diff --git a/lsm6ds3/lsm6ds3.go b/lsm6ds3/lsm6ds3.go index d6a3e73..66e836b 100644 --- a/lsm6ds3/lsm6ds3.go +++ b/lsm6ds3/lsm6ds3.go @@ -166,7 +166,7 @@ func (d *Device) ReadRotation() (x int32, y int32, z int32) { return } -// ReadTemperature returns the temperature in celsius milli degrees (ºC/1000) +// ReadTemperature returns the temperature in celsius milli degrees (°C/1000) func (d *Device) ReadTemperature() (int32, error) { d.bus.ReadRegister(uint8(d.Address), OUT_TEMP_L, d.dataBufferTwo) diff --git a/mag3110/mag3110.go b/mag3110/mag3110.go index 651d338..cb3ccec 100644 --- a/mag3110/mag3110.go +++ b/mag3110/mag3110.go @@ -50,7 +50,7 @@ func (d Device) ReadMagnetic() (x int16, y int16, z int16) { } // ReadTemperature reads and returns the current die temperature in -// celsius milli degrees (ºC/1000). +// celsius milli degrees (°C/1000). func (d Device) ReadTemperature() (int32, error) { data := make([]byte, 1) d.bus.ReadRegister(uint8(d.Address), DIE_TEMP, data) diff --git a/sht3x/sht3x.go b/sht3x/sht3x.go index f430691..fd055d1 100644 --- a/sht3x/sht3x.go +++ b/sht3x/sht3x.go @@ -29,7 +29,7 @@ func New(bus machine.I2C) Device { } } -// Read returns the temperature in celsius milli degrees (ºC/1000). +// Read returns the temperature in celsius milli degrees (°C/1000). func (d *Device) ReadTemperature() (tempMilliCelsius int32, err error) { tempMilliCelsius, _, err = d.ReadTemperatureHumidity() return tempMilliCelsius, err diff --git a/thermistor/thermistor.go b/thermistor/thermistor.go index feeb731..1d6aede 100644 --- a/thermistor/thermistor.go +++ b/thermistor/thermistor.go @@ -60,7 +60,7 @@ func (d *Device) Configure() { d.adc.Configure() } -// ReadTemperature returns the temperature in celsius milli degrees (ºC/1000) +// ReadTemperature returns the temperature in celsius milli degrees (°C/1000) func (d *Device) ReadTemperature() (temperature int32, err error) { var reading uint32 if d.HighSide {