Subversion Repositories EDIS_Ignition

Rev

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

Rev 5 Rev 11
Line 22... Line 22...
22
{
22
{
23
        int const WIDTH = 128;
23
        int const WIDTH = 128;
24
        int const HEIGHT = 64;
24
        int const HEIGHT = 64;
25
        int const DISPLAY_RAMWIDTH = 132;
25
        int const DISPLAY_RAMWIDTH = 132;
26
 
26
 
27
 
-
 
28
        uint32_t press; // pressure millibar * 100
27
        uint32_t press; // pressure millibar * 100
29
        int32_t temp;   // temperature * 10
28
        int32_t temp;   // temperature * 10
30
        int rpm;        // user pressed button
29
        int rpm;                // user pressed button
31
 
30
 
32
        int timing; // timing value .
31
        int timing; // timing value .
33
}
32
}
34
 
33
 
35
uint8_t displayBuffer[MAX_DISPLAYS][dataSize(WIDTH, HEIGHT)];
34
uint8_t displayBuffer[MAX_DISPLAYS][dataSize(WIDTH, HEIGHT)];
Line 85... Line 84...
85
 
84
 
86
                if (intensity > 0)
85
                if (intensity > 0)
87
                {
86
                {
88
 
87
 
89
                        dispXY.drawAxes();
88
                        dispXY.drawAxes();
90
       
89
 
91
                        char buff1[10];
90
                        char buff1[10];
92
                        char buff2[10];
91
                        char buff2[20];
93
                        char buff[10];
92
                        char buff[10];
94
 
93
 
95
                        small_sprintf(buff, "%2d.%01d", timing / 10, timing % 10);
94
                        small_sprintf(buff, "%2d.%01d", timing / 10, timing % 10);
96
 
95
 
97
                        small_sprintf(buff1, "%4ld.%02ld mb", press / 100, press % 100);
96
                        small_sprintf(buff1, "%4ld.%02ld mb", press / 100, press % 100);
98
 
97
 
99
                        small_sprintf(buff2, "%4d rpm", rpm);
98
                        small_sprintf(buff2, "%2ldC %4d rpm", temp / 100, rpm);
100
 
99
 
101
                        dispXY.plotPoint(rpm, press/100, buff, buff1, buff2);
100
                        dispXY.plotPoint(rpm, press / 100, buff, buff1, buff2);
102
                }
101
                }      
103
                display.display();
102
                display.display();
104
 
103
 
105
                return 0;
104
                return 0;
106
        }
105
        }
107
 
106