diff --git a/hwTestSuite/testSuite.c b/hwTestSuite/testSuite.c index 52caf4a..5e91624 100644 --- a/hwTestSuite/testSuite.c +++ b/hwTestSuite/testSuite.c @@ -65,6 +65,7 @@ uint16_t palmButtons; uint16_t palmButtonsLastFrame; Boolean isM515; Boolean haveKsyms; +Boolean skipFrameDelay; uint8_t* sharedDataBuffer; /*video*/ @@ -235,6 +236,7 @@ static Boolean testerInit(){ FtrGet(sysFtrCreator, sysFtrNumOEMDeviceID, &deviceId); isM515 = deviceId == (uint32_t)'lith';/*"lith" is the Palm m515 device code, likely because it is one of the first with a lithium ion battery*/ haveKsyms = initUndocumentedApiHandlers(); + skipFrameDelay = false; subprogramIndex = 0; subprogramArgsSet = false; lastSubprogramReturnValue = makeVar(LENGTH_0, TYPE_NULL, 0); @@ -294,7 +296,9 @@ DWord PilotMain(Word cmd, Ptr cmdBPB, Word launchFlags){ applicationRunning = true; while(applicationRunning){ testerFrameLoop(); - SysTaskDelay(4);/*30 fps*/ + if(!skipFrameDelay) + SysTaskDelay(4);/*30 fps*/ + skipFrameDelay = false; } testerExit(); diff --git a/hwTestSuite/testSuite.h b/hwTestSuite/testSuite.h index 68cdbc9..ee6ed96 100644 --- a/hwTestSuite/testSuite.h +++ b/hwTestSuite/testSuite.h @@ -56,6 +56,7 @@ extern uint16_t palmButtons; extern uint16_t palmButtonsLastFrame; extern Boolean isM515; extern Boolean haveKsyms; +extern Boolean skipFrameDelay; extern uint8_t* sharedDataBuffer; /* diff --git a/hwTestSuite/tools.c b/hwTestSuite/tools.c index f847e05..af0efb6 100644 --- a/hwTestSuite/tools.c +++ b/hwTestSuite/tools.c @@ -416,7 +416,7 @@ var getTouchscreenLut(){ } if(getButtonPressed(buttonSelect)){ - StrPrintF(sharedDataBuffer, "TOUCHM%d.BIN", bufferStrip); + StrPrintF(sharedDataBuffer, "TOUCHMAP%d.BIN", bufferStrip); makeFile((uint8_t*)pixelData, bufferSize, sharedDataBuffer); bufferStrip++; if(bufferStrip * bufferHeight >= SCREEN_HEIGHT + 60){ @@ -433,6 +433,8 @@ var getTouchscreenLut(){ memset(pixelData, 0x00, bufferSize); } } + + skipFrameDelay = true;/*run as fast as possible to pick up pen movement*/ } if(getButtonPressed(buttonBack)){ diff --git a/tests/touchscreenResistanceMap/TOUCHMAP0.BIN b/tests/touchscreenResistanceMap/TOUCHMAP0.BIN new file mode 100755 index 0000000..0f2ebd9 Binary files /dev/null and b/tests/touchscreenResistanceMap/TOUCHMAP0.BIN differ diff --git a/tests/touchscreenResistanceMap/TOUCHMAP1.BIN b/tests/touchscreenResistanceMap/TOUCHMAP1.BIN new file mode 100755 index 0000000..2d0f0f3 Binary files /dev/null and b/tests/touchscreenResistanceMap/TOUCHMAP1.BIN differ diff --git a/tests/touchscreenResistanceMap/TOUCHMAP10.BIN b/tests/touchscreenResistanceMap/TOUCHMAP10.BIN new file mode 100755 index 0000000..e873739 Binary files /dev/null and b/tests/touchscreenResistanceMap/TOUCHMAP10.BIN differ diff --git a/tests/touchscreenResistanceMap/TOUCHMAP2.BIN b/tests/touchscreenResistanceMap/TOUCHMAP2.BIN new file mode 100755 index 0000000..5c8c5cc Binary files /dev/null and b/tests/touchscreenResistanceMap/TOUCHMAP2.BIN differ diff --git a/tests/touchscreenResistanceMap/TOUCHMAP3.BIN b/tests/touchscreenResistanceMap/TOUCHMAP3.BIN new file mode 100755 index 0000000..8738d79 Binary files /dev/null and b/tests/touchscreenResistanceMap/TOUCHMAP3.BIN differ diff --git a/tests/touchscreenResistanceMap/TOUCHMAP4.BIN b/tests/touchscreenResistanceMap/TOUCHMAP4.BIN new file mode 100755 index 0000000..113605e Binary files /dev/null and b/tests/touchscreenResistanceMap/TOUCHMAP4.BIN differ diff --git a/tests/touchscreenResistanceMap/TOUCHMAP5.BIN b/tests/touchscreenResistanceMap/TOUCHMAP5.BIN new file mode 100755 index 0000000..b5fbc54 Binary files /dev/null and b/tests/touchscreenResistanceMap/TOUCHMAP5.BIN differ diff --git a/tests/touchscreenResistanceMap/TOUCHMAP6.BIN b/tests/touchscreenResistanceMap/TOUCHMAP6.BIN new file mode 100755 index 0000000..13d330a Binary files /dev/null and b/tests/touchscreenResistanceMap/TOUCHMAP6.BIN differ diff --git a/tests/touchscreenResistanceMap/TOUCHMAP7.BIN b/tests/touchscreenResistanceMap/TOUCHMAP7.BIN new file mode 100755 index 0000000..0f0db19 Binary files /dev/null and b/tests/touchscreenResistanceMap/TOUCHMAP7.BIN differ diff --git a/tests/touchscreenResistanceMap/TOUCHMAP8.BIN b/tests/touchscreenResistanceMap/TOUCHMAP8.BIN new file mode 100755 index 0000000..d2086b1 Binary files /dev/null and b/tests/touchscreenResistanceMap/TOUCHMAP8.BIN differ diff --git a/tests/touchscreenResistanceMap/TOUCHMAP9.BIN b/tests/touchscreenResistanceMap/TOUCHMAP9.BIN new file mode 100755 index 0000000..36414e1 Binary files /dev/null and b/tests/touchscreenResistanceMap/TOUCHMAP9.BIN differ diff --git a/tests/touchscreenResistanceMap/fullTouchMap.bin b/tests/touchscreenResistanceMap/fullTouchMap.bin new file mode 100644 index 0000000..3c3c137 Binary files /dev/null and b/tests/touchscreenResistanceMap/fullTouchMap.bin differ