Last time I bought a new phone (Samsung M100) the shopkeeper told me to keep it for 8hrs on charging before using it the first time.
Dont know the reason though.
#include "conio.h"
#define DATA 0x378
#define STATUS 0x379
//for writing
_outp(DATA,4); //where 4 is to be written to data port
//for input
_inp(STATUS);
/*the addresses given are the common ones for the DB25 parallel port. Data or output port is an 8 bit port white status port takes...