This function clears the keyboard buffer.

Syntax

void ResetKey(void);

Parameters

None

Return value

None

Remarks

This function is useful when one wants to wait for a key press. Call this function to prevent a previous keystroke, still in the keyboard buffer, causing e.g. kbhit function to return with TRUE.

Requirements

Header file:
lib.h
Library file:
libSTARTUPOPH5000.a

Last updated: 2021/06/30