helper program for designing graphical interface

I must admit I use a somewhat low tech approach to my ui design.

Step 1. quick dirty coding of my initial button/text placement
Step 2. create a quick grid on the screen
Step 3. try not to move my lips as i count the gridlines
Step 4. adjust initial code.

The code for it is below (based on adafruit libs)

void grid (int gridspacing) { // routine to generate a square grid on screen x pixels per side
  tft.setCursor(0,0);
  int ScreenMax=160; // manually ammended, could be included in function as a parameter
  // vertical lines
  for (int i=0; i < ScreenMax+1; i+=gridspacing) {
    tft.drawLine(i, 0, i, ScreenMax-1, ST7735_WHITE);
  } // End if
  // horizontal lines
  for (int i=0; i < ScreenMax+1; i+=gridspacing) {
    tft.drawLine(0, i, ScreenMax-1, i, ST7735_WHITE);
  } // End if
  delay (10000);
}// End grid