Celcius circle

Help
ReMi
2013-02-25
2013-03-31
  • ReMi
    ReMi
    2013-02-25

    i am trying to display the celcius circle °C but i can't get it on screen
    all i get is a strange character ..

    Is this possible ?
    i use this python code started from XBMC

    lcd_cmd('widget_set ' + screen + ' lcd_page0 1 1 "' + u"\u00B0" + '"')
    
     
  • ReMi
    ReMi
    2013-02-25

    I found the ISO 8859-1 character in the server/drivers/glcd_font5x8.h source file …
    so it seems possible ??

    = {b__OO__,
      b_O__O_,
      b_O__O_,
      b__OO__,
      b______,
      b______,
      b______,
      b______},

    P.S.  i am using a VLSystems MPLAY 202 (lis) VFD display

     
  • ReMi
    ReMi
    2013-02-26

    Found it !!

    First i found the the "lis" driver i was using wasn't supporting the character
    So i changed the file: /usr/local/etc/LCDd.conf

    [s]Driver=lis [/s]
    Driver=hd44780
    ## Hitachi HD44780 driver ##
    [hd44780]
    ConnectionType=mplay
    # Port=0x378
    Device=/dev/ttyUSB0
    Speed=38400
    CharMap=hd44780_default
    

    And made this changes to my python script

    1
    2
    3
    4
    #!/usr/bin/env python
    [b]# -*- coding: utf8 -*-[/b]
    msg_line1 = [b]u'[/b]widget_set {0} lcd_page{1} 1 {2} "{3:4.1f}°C  {4:2s}%"'.format(screen, str(lcd_line_nr),str(lcd_line_nr + 1),TEMP,VOCHT)
    lcd_cmd(msg_line1[b].encode('latin-1')[/b])