// codeNRF52LL20200323TestSetWatchFORUM.js // Mon 2020.03.23 // Copyright: Robin G. Cox © 2020 // Preliminary test harness for nRF52 tutorial using PPI // Reveals an anomaly when using setWatch() by providing different run time data sets // It takes TWENTY seconds to initialize and render initial instructions // Modified from // Wed 2020.03.18 // http://forum.espruino.com/conversations/316941/ // MDBT42Q breakout board - oriented with USART pins on edge at 12 O'Clock // External button wired through 2K2 to 3V3 // D15 fifth button from USART edge - 9 O'Clock // D14 DigitalPulse out - used to trigger separate setWatch for timing // activate when the pulse is HI on D14 // A jumper wires D14 output to neighboring D16 as input for setWatch() // A jumper wires D17 output to neighboring D18 as input for setWatch() // PPI - wiring RTC to input pin for setWatch detection // D22 lower left corner - 7 O'Clock // It's output goes to base resistor of NPN 2n2222 // A jumper wires D22 to neighboring D20 as input for setWatch() // Rx Tx // GND VIn D7 D8 D6 // GND // VIn // 3V3 // D14 // D15 // D16 // D17 // D18 // D19 // D20 // D22 // Reference // http://www.espruino.com/Reference#l__global_setWatch // http://www.espruino.com/Reference#l__global_digitalPulse // digitalPulse( A0, 1, 5 ); // http://www.espruino.com/Reference#l__global_pinMode // pinMode( pin, 'output' );