Announcement

Collapse
No announcement yet.

refresh data on uOled without clear screen

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • refresh data on uOled without clear screen

    Hello all
    when I put some variable data on my uOled screen
    for example the data input from my RC5 remote. The number 1 and then the number
    5 then see I the 1 and 5 together on the same spot
    is there a way to refresh only the input from my remote and not the screen it self
    I use Bascom-avr for my program...

    have I to use fusing or format here for?

    Code:
    $regfile = "m2561def.dat"$crystal = 14745600$hwstack = 96$swstack = 28$framesize = 96$baud = 115200 'Serial boudrate$baud1 = 115200 'Serial Baudrate voor µOLEDConfig Com1 = Dummy , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0Config Com2 = Dummy , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0Open "COM2:" For Binary As #2$include "4d_declarations.inc"Dim F As String * 10Call Init_display()'---------------------Commands 4D----------------------------------------------Declare Sub Set_place'------------------------------------------------------------------------------Config Adc = Single , Prescaler = Auto , Reference = Avcc 'internal_1.1Start AdcGpr Alias Getadc(0)Gpl Alias Getadc(1)Do Call Set_place Call Draw_string_text_format(0 , 0 , 5x7 , Red , F) Call Draw_string_text_format(9 , 0 , 5x7 , Green , "L R") 'Call Draw_string_graphics_format(30 , 16 , 5x7 , Yellow , 02 , 02 , "RC Code") Call Draw_string_graphics_format(30 , 16 , 5x7 , Blue , 02 , 02 , F)Waitms 400Print "Gpr " ; Gpr ; ":" ; "Gpl " ; GplWaitms 20LoopEnd'------------------------------------------------------------------------------Sub Set_place F = Str(gpr) F = Format(f , "000")End Sub$include "4d_routines.inc"

    has anyone here experience with.....

  • #2


    I found the solution for my problem
    add the line:
    Call Set_transparent_opaque_text(opaque)
    to the code and it works...

    Comment

    Working...
    X