Input test of nanoWipom board


Input test of nanoWipom board.
The test checks 4 digital inputs (DIN1-4).
Install X15-X25,X27 jumpers.
 Short the corresponding terminals (DINx+ and DINx-) of X26 to check an opto-isolated inputs.

Toolkit:STM Development System

Location:/bipom/devtools/STM32/examples/nanoWipom/i2c_lcd

Code Example


int main(void) 
{
	int ndx;
	/* Initialize all port pins */
	NWDIO_Init();
	
	delayMs(250);
	
	//

	tprintf("\n\rNanoWipom %s %s",__DATE__,__TIME__);
	tprintf("\n\rINPUT TEST REV 1.01");
	for(;;)
	{
		tprintf("\n\r");
		for(ndx = 1; ndx < 5; ndx++)
				tprintf("%d ",NWDIO_GetInput(ndx));
		delayMs(1000);
	}
	return 0;
}