Print a Chart/Diagramm

Hello,

i´ve got an oled display with a small temp. sensor and the time.
I want to print a little graph with the temperatur over 1 minute.

This is my code for the pixel:

GOFoled.drawPixel( s, t, WHITE);

s is the time in seconds and t is the temperatur.

Everything is fine, but how can i programm it, that the last pixel dosnt disapear.
The Pixel jumps vom second to second till the end of the display, an then jump to the beginning
but i want to see a graph, that the old pixel didnt disapear.

I hope you understand me.

regards mammut

I hope you understand me.

We understand you. It's your code we can't understand, because we can't see it.

Oh sorry,

here is the code

#include <Adafruit_BMP085.h>
#include <Time.h>




//SmartWatch Mk1

//v.0.0.1
 
#include <Wire.h>
#include <GOFi2cOLED.h>

GOFi2cOLED GOFoled;
Adafruit_BMP085 bmp;

int s ;
int m ;
int t;
int i;


void setup()   {                  
  //default address is 0x3D.
  GOFoled.init(0x3C);
  // init done
  
  GOFoled.display(); // show splashscreen
  delay(2000);
  GOFoled.clearDisplay();
  
  setTime(13,55,00,9,5,2015);
  
  GOFoled.setRotation(3); //set rotation
  GOFoled.setTextColor(WHITE);
  // GOFoled.setInverseDisplay(); 
   //GOFoled.setBrightness(2);
   //GOFoled.setNormalDisplay();
   bmp.begin();
}

void loop() {
 
 {
   
   // Uhr
   
   GOFoled.setRotation(3); //set rotation
   s= (second());
   m= (minute()); 
   i= (second());
   t= bmp.readTemperature();
    GOFoled.clearDisplay();
    GOFoled.setTextColor(WHITE);
    GOFoled.setTextSize(4);
    GOFoled.setCursor(4,0);
    GOFoled.print(hour());
    GOFoled.setCursor(12,34);
    GOFoled.setTextSize(3);
    GOFoled.print(minute());
    GOFoled.setTextSize(2);
    GOFoled.setTextColor(BLACK, WHITE);
    GOFoled.setCursor(15,60);
    GOFoled.println(second());
    GOFoled.setCursor(2, 110);
    GOFoled.print(bmp.readTemperature(),1);
    
    //Datum
    GOFoled.setRotation(2); //set rotation
    GOFoled.setCursor(2,48);
    GOFoled.setTextSize(1);
    GOFoled.print(day());
    GOFoled.print(". ");
    GOFoled.print(month());
    GOFoled.print(". ");
    GOFoled.println(year());
    GOFoled.setRotation(3); //set rotation
    
    
    
    GOFoled.drawRect(0, 0, 64, 128, WHITE);
    
    //Sekundenanzeige
    
    GOFoled.drawLine(63, 0, 63, (s*2.13), WHITE);
    GOFoled.drawLine(62, 0, 62, (s*2.13), WHITE);
    GOFoled.drawLine(61, 0, 61, (s*2.13), WHITE);
    //GOFoled.drawLine(60, 0, 60, (s*2.13), WHITE);
   
    
    //Minutenanzeige
     GOFoled.drawLine(58, 0, 58, (m*2.13), WHITE);
    GOFoled.drawLine(57, 0, 57, (m*2.13), WHITE);
    //GOFoled.drawLine(56, 0, 56, (m*2.13), WHITE);
   // GOFoled.drawLine(55, 0, 55, (m*2.13), WHITE);
    
    
   // GOFoled.drawPixel( s, 128-t, WHITE);
    
    for (int i=0; i<10; i++){
   GOFoled.drawPixel( s, 128-t, WHITE);
}
   // GOFoled.drawLine(s, 163, s, t , WHITE);
   
    GOFoled.drawCircle( 20, 100, 20, WHITE); 
    
   
 
    
    
    
     GOFoled.display();
 
 }
 
 
  
}
    GOFoled.clearDisplay();

Is it any wonder why the previous dot disappears?