Subversion Repositories dashGPS

Rev

Rev 6 | Rev 8 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6 Rev 7
Line 1... Line 1...
1
#include "main.h"
1
#include "main.h"
2
#include "libOLED/stm32_halDisplay.H"
2
#include "libOLED/stm32_halDisplay.H"
-
 
3
#include "libOLED/fontclass.H"
-
 
4
 
3
namespace
5
namespace
4
{
6
{
5
  int const WIDTH = 128;
7
  int const WIDTH = 128;
6
  int const HEIGHT = 64;
8
  int const HEIGHT = 64;
7
  int const DISPLAY_RAMWIDTH = 132;
9
  int const DISPLAY_RAMWIDTH = 132;
Line 38... Line 40...
38
extern "C" void
40
extern "C" void
39
cc_run()
41
cc_run()
40
{
42
{
41
         if(cnt==0)
43
         if(cnt==0)
42
           display1.clearDisplay();
44
           display1.clearDisplay();
-
 
45
 
-
 
46
         display1.gotoxy(0,16);
-
 
47
         display1.printString(small_font,"Test",4,WHITE);
43
         display1.drawLine(0,cnt,127,cnt,WHITE);
48
         display1.drawLine(96,cnt,127,cnt,WHITE);
44
         display1.display();
49
         display1.display();
45
         cnt++;
50
         cnt++;
46
         cnt%=64;
51
         cnt%=64;
47
}
52
}