Home
last modified time | relevance | path

Searched refs:BALL_POS_X_MAX (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/samples/boards/bbc/microbit/pong/src/
Dmain.c40 #define BALL_POS_X_MAX 49 /* Maximum ball X coordinate */ macro
346 ble_send_ball(BALL_POS_X_MAX - ball_pos.x, ball_pos.y, in game_refresh()
358 } else if (ball_pos.x > BALL_POS_X_MAX) { in game_refresh()
359 ball_pos.x = (2 * BALL_POS_X_MAX) - ball_pos.x; in game_refresh()