#include <SPI.h>
#include <TFT_eSPI.h> // Hardware-specific library
TFT_eSPI tft = TFT_eSPI(); // Invoke custom library
char headings[18][20]=
{{"ischaemic disease"},
{"hypertrophy"},
{"atrioventricular"},
{"bundle branch"},
{"supraventricular"},
{"ventricular"},
{"pacemakers"},
{"Wolff Parkinson"},
{"miscellaneous"},
{" "}
};
char categories[18][18][32]=
{
{
{"Acute infe.myocard.infarction"},
{"Acute ante.myocard.infarction"},
{"Acute post.myocard.infarction"},
{"Old infe. myocard. infarction"},
{"Acute myocard.infar.With LBBB"}
},
{
{"Left vent & atrial hypertrphy"},
{"Mitral Stenosis"},
{"Right atrial hypertrophy"},
{"Left vnt hyprt & ante hemiblk"}
},
{
{"First degree AV block"},
{"2:1 Atrioventricular block"},
{"Complete Heart Block"},
{"Complt hrt block & atr fibril"},
},
{
{"Right Bundle Branch Block"},
{"Left anterior hemiblock"},
{"Left bundle branch block"},
{"'Trifascicular' block"},
},
{
{"Sinus bradycardia"},
{"Sinus tachycardia"},
{"Atrial Bigeminy"},
{"Atrial Premature Beat"},
{"Atr fibril & rapid vent resp"},
{"Atr fibril & pre-exist LBBB"},
{"Atrial Flutter"},
{"Atr flutter & 2:1 AV conductn"},
{"Wlf-Park-White syndr+atr fibr"},
{"category10"},
("category11"),
{"category12"}
},
{
{"Ventri premature beats"},
{"Ventricular bigeminy"},
{"Idioventr ESC in Cmplt Hrt Blk"},
{"Ventri tachy+clr AV dissociatn"},
{"Ventri tachy+subtl AV dissoctn"},
{"Torsade de pointes ventr tachy"},
{"Polymorph Ventr Tachy with ICD"},
{"Ventricular Fibrillation"},
},
{
{"Ventricular pacemaker"},
{"Dual Chmbr Pacemkr with an ICD"}
},
{
{"WPW syndrm-left lateral pathwy"},
{"WPW syndrm-anteroseptal pathwy"},
{"WPW syndrm-atrial fibrillation"},
{"WPW syndrm-atrial fibrillatn1"}
},
{
{"Implntbl Cardverter Defibrillr"},
{"Elec. Alternans-percardl effsn"},
{"Long QT Romano-Ward Syndrome"},
{"Lown-Ganong-Levine Syndrome"},
{"Acute pulmonary embolus"},
{"Hyperkalaemia"},
{"Hypokalaemia"},
{"Piggy-back heart transplant"},
{"Digitalis effect"}
}
};
void setup(void) {
Serial.begin(115200);
if (headings[9] == "") {
Serial.println("message 1");
}
if (headings[9][0] == 32) {
Serial.println("message 2");
}
if (headings[10][0] == 0) {
Serial.println("message 3");
}
/* if (headings[9][0] == " ") {
Serial.println("message 3");
}
if (headings[10] == '\0') {
Serial.println("message 4");
} */
if (&headings[10][0] == nullptr) {
Serial.println("message 5");
}
if (headings[10] == nullptr) {
Serial.println("message 6");
}
Serial.println("end of program");
for(;;) {}
}
void loop(void) {}