main.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:CoPilot-InfotainmentSystem 作者: Joelzeller 项目源码 文件源码
def update(self, *args):

        global clocktheme

        temp_f_string = str(temp_f)

        if int(float(animation_start_time))+5 <= int(float(time_second_mod)): #animation is delayed for better asthetics       
            if TEMPON == 1:
                if clocktheme == 2: # if analog clock is black, temp display is updated dynamically
                    #comment out next line for dev work - no temp sensor connected
                    if TempProbePresent == 1:
                            read_temp()     # If clock is shown, it goes really slow when updated dynamically
                            self.text = temp_f_string + u'\N{DEGREE SIGN}'
                    if TempProbePresent == 0:
                            self.text = "--" + u'\N{DEGREE SIGN}'
                if clocktheme != 2:
                    self.text = " "
            if TEMPON == 0: 
                self.text = " "
        self.font_size = 30
        self.pos = (354,140)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号