11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Library FunctionsKBHITSynopsis#include int kbhit (void)DescriptionThis function returns 1 if a character has been pressed on the console keyboard, 0 otherwise. Normallythe character would then be read via getch().Example#include voidmain (void){int i;}while(!kbhit()) {cputs("I’m waiting..");for(i = 0 ; i != 1000 ; i++)continue;}See Alsogetch(), getche()Return ValueReturns one if a character has been pressed on the console keyboard, zero otherwise.155

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!