gigatron/rom/Archive/lcc/Libs/Gigatron/WaitKey.c
2025-01-28 19:17:01 +03:00

19 lines
222 B
C

#include <Gigatron.h>
/*
* Wait until we observe a key change to a non-idle state
*/
byte WaitKey(void)
{
byte s, t = serialRaw;
do {
s = t;
t = serialRaw;
} while (s == t || t == 255);
return t;
}