Example #1
0
#include "setup.h"

MAX6675 thermocouple(thermoCLK, thermoCS, thermoDO);

Adafruit_FT6206 ts = Adafruit_FT6206();
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);

//ReflowProfile profile1 =
//{
//	"SMD291SNL10", 80, 5,
//	{
//		//   Zone      Exit(C)   Min(S)  Max(S)  Tgt(S)  Alarm
//		{ "Pre-heat",     140,       0,      0,     90,  false },
//		{ "Soak",         217,      60,     90,     80,  false },
//		{ "Liquidus",     240,      15,     30,     20,  false },
//		{ "Reflow",       217,      15,     30,     20,  true  },
//		{ "Cooling",      80,        0,      0,     80,  true  },
//    }
//};

ReflowProfile profile11 =
 {
     "SMD291SNL10", 80, 6,
     {
         //   Zone      Exit(C)   Min(S)  Max(S)  Tgt(S)  Alarm
         { "Pre-heat",     130,       0,      0,     70,  false },
         { "Pre-heat-2",   140,      70,    100,     80,  false },
         { "Soak",         217,      60,     90,     80,  false },
         { "Liquidus",     240,      15,     30,     20,  false },
         { "Reflow",       217,      15,     30,     20,  true  },
         { "Cooling",      80,        0,      0,     80,  true  },
Example #2
0
unsigned long testRandomRects();
unsigned long testFillScreen();
unsigned long testText();
unsigned long testLines(uint16_t);
unsigned long testFastLines(uint16_t, uint16_t);
unsigned long testRects(uint16_t);
unsigned long testFilledRects(uint16_t, uint16_t);
unsigned long testFilledCircles(uint8_t, uint16_t);
unsigned long testCircles(uint8_t, uint16_t);
unsigned long testTriangles();
unsigned long testFilledTriangles();
unsigned long testRoundRects();
unsigned long testFilledRoundRects();


Adafruit_ILI9341 tft = Adafruit_ILI9341(A2, A1, A0);
int i = 0;

void setup() {
    Serial.begin(9600);
    Serial.println("ILI9341 Test!");
    tft.begin();
    tft.fillScreen(ILI9341_BLACK);
}

void loop() {
    // testText();
    benchMark();
}

void benchMark() {