尝试使用 micropython 在树莓派 pico 的 SERLCD 液晶显示器上显示“degree f”
示例代码:
import machine
import utime
sda = machine.Pin(0)
scl = machine.Pin(1)
i2c = machine.I2C(0, sda = sda, scl = scl, freq = 400000)
print(i2c.scan()) #Prints 114
utime.sleep_ms(100)
i2c.writeto(114, '\x7C') #Sending hexadecimal string
i2c.writeto(114, '\x2D') #2D blanks the display and sets the cursor to the beginning
y = str(1234) #Test character
#i2c.writeto(114, str(10.5) + str(u'\xb0')) #Works OK
i2c.writeto(114, "Count:" + y + (str('u\2109')))
显示为 Count 1234132。u\2109 是“degree F”的 unicode 显示“F 度”符号的正确技术是什么?