void displayText(String s_msg) {
	display.fillRect(0, 32, 128, 32, BLACK);
	display.setTextSize(1);
	display.setTextColor(WHITE);
	display.setCursor(5,40);
	display.println(s_msg);
	display.display();
}
void displayTemp(String s_temp) {
	display.fillRect(0, 0, 128, 32, BLACK);
	display.setTextSize(1);
	display.setTextColor(WHITE);
	display.setCursor(5,10);
	display.println(s_temp);
	display.display();
}
Exemple #3
0
void testfillrect(void) {
  uint8_t color = 1;
  for (int16_t i=0; i<display.height()/2; i+=3) {
    // alternate colors
    display.fillRect(i, i, display.width()-i*2, display.height()-i*2, color%2);
    display.display();
    color++;
  }
}
Exemple #4
0
void ANXInputClearChar(uint8_t row, uint8_t col, uint8_t startX, uint8_t startY) {
  display.fillRect(startX + (col * ANX_FONT_WIDTH), startY + (row * ANX_FONT_HEIGHT), ANX_FONT_WIDTH, ANX_FONT_HEIGHT, BLACK);
}
Exemple #5
0
void ANXInputDrawCursor(uint8_t row, uint8_t col, uint8_t startX, uint8_t startY) {
  display.fillRect(startX + (col * ANX_FONT_WIDTH), startY + (row * ANX_FONT_HEIGHT), ANX_FONT_WIDTH, ANX_FONT_HEIGHT, INVERSE);
}