Subversion Repositories testOled

Rev

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

Rev 3 Rev 4
Line 75... Line 75...
75
        {
75
        {
76
 
76
 
77
                if (dialIndex < 0 && dialIndex > MAX_DISPLAYS)
77
                if (dialIndex < 0 && dialIndex > MAX_DISPLAYS)
78
                        return -1;
78
                        return -1;
79
                stm32_halDisplay_t &display = displays[dialIndex];
79
                stm32_halDisplay_t &display = displays[dialIndex];
80
                char buff[10];
-
 
81
                display.clearDisplay(BLACK);
80
                display.clearDisplay(BLACK);
82
                dispXY.drawAxes();
81
                dispXY.drawAxes();
83
                x += 100;
82
                x += 50;
84
                y = m.ap_sin((ph+x)/2 )/10 + 50;
83
                y = m.ap_sin((ph+x)/2 )/10 + 50;
85
 
84
 
86
                if (x > 6000)
85
                if (x > 6000)
87
                {
86
                {
88
                        ph += 200;
87
                        ph += 200;
Line 90... Line 89...
90
                          ph-=360*m.SINE_SCALING;
89
                          ph-=360*m.SINE_SCALING;
91
                   
90
                   
92
                        x = 500;
91
                        x = 500;
93
                }
92
                }
94
                display.dim(false);
93
                display.dim(false);
-
 
94
                char buff[10];
95
                char buff1[10];
95
                char buff1[10];
96
                char buff2[10];
96
                char buff2[10];
97
                small_sprintf(buff1, "x=%4d", x);
97
                small_sprintf(buff1, "x=%4d", x);
98
                small_sprintf(buff2, "y=%4d", y);
98
                small_sprintf(buff2, "y=%4d", y);
-
 
99
                small_sprintf(buff,  "123\xb0");
99
 
100
 
100
                dispXY.plotPoint(x, y, "frogs", buff1, buff2);
101
                dispXY.plotPoint(x, y, buff, buff1, buff2);
101
                display.dim(true);
102
                display.dim(true);
102
                display.display();
103
                display.display();
103
 
104
 
104
                return 0;
105
                return 0;
105
        }
106
        }