MCPcopy Create free account
hub / github.com/SmingHub/Sming / dirToString

Function dirToString

samples/Gesture_APDS-9960/app/application.cpp:14–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#define APDS9960_INT 4
13
14String dirToString(unsigned dir)
15{
16 switch(dir) {
17 case DIR_NONE:
18 return F("NONE");
19 case DIR_LEFT:
20 return F("LEFT");
21 case DIR_RIGHT:
22 return F("RIGHT");
23 case DIR_UP:
24 return F("UP");
25 case DIR_DOWN:
26 return F("DOWN");
27 case DIR_NEAR:
28 return F("NEAR");
29 case DIR_FAR:
30 return F("FAR");
31 case DIR_ALL:
32 return F("ALL");
33 default:
34 return nullptr;
35 }
36}
37
38void handleGesture()
39{

Callers 1

handleGestureFunction · 0.85

Calls 1

FFunction · 0.50

Tested by

no test coverage detected