@@ -140,7 +140,7 @@ initDisplay()
140
140
141
141
tft.initialize ();
142
142
tft.enableBacklight (true );
143
- tft.setRotation (Display::Rotation::Rotate90 );
143
+ tft.setOrientation (modm::glcd::Orientation::Portrait90 );
144
144
}
145
145
146
146
@@ -164,7 +164,7 @@ initTouchscreen()
164
164
// ----------------------------------------------------------------------------
165
165
/* screen calibration */
166
166
static void
167
- drawCross (modm::GraphicDisplay & display, modm::glcd::Point center)
167
+ drawCross (modm::ColorGraphicDisplay & display, modm::glcd::Point center)
168
168
{
169
169
display.setColor (modm::glcd::Color::red ());
170
170
display.drawLine (center.x - 15 , center.y , center.x - 2 , center.y );
@@ -187,7 +187,7 @@ drawCross(modm::GraphicDisplay& display, modm::glcd::Point center)
187
187
}
188
188
189
189
static void
190
- calibrateTouchscreen (modm::GraphicDisplay & display, modm::glcd::Point *fixed_samples = NULL )
190
+ calibrateTouchscreen (modm::ColorGraphicDisplay & display, modm::glcd::Point *fixed_samples = nullptr )
191
191
{
192
192
MODM_LOG_DEBUG << __PRETTY_FUNCTION__ << modm::endl;
193
193
modm::glcd::Point calibrationPoint[3 ] = { { 45 , 45 }, { 270 , 90 }, { 100 , 190 } };
@@ -229,10 +229,10 @@ drawPoint(modm::GraphicDisplay& display, modm::glcd::Point point)
229
229
return ;
230
230
}
231
231
232
- display.drawPixel (point.x , point.y );
233
- display.drawPixel (point.x + 1 , point.y );
234
- display.drawPixel (point.x , point.y + 1 );
235
- display.drawPixel (point.x + 1 , point.y + 1 );
232
+ display.setPixel (point.x , point.y );
233
+ display.setPixel (point.x + 1 , point.y );
234
+ display.setPixel (point.x , point.y + 1 );
235
+ display.setPixel (point.x + 1 , point.y + 1 );
236
236
}
237
237
238
238
// ----------------------------------------------------------------------------
0 commit comments