clean logs and improve engine handling by removing hits and movment_delay from the loop to the engine

This commit is contained in:
andrea
2026-03-18 21:41:51 +01:00
parent abc0ddb661
commit 49a772f6de
6 changed files with 51 additions and 50 deletions

View File

@@ -1,7 +1,7 @@
#ifndef BALL_H
#define BALL_H
#include <stdint.h>
#include <Arduino.h>
#include "config.h"
class Ball {
@@ -17,6 +17,8 @@ class Ball {
void move();
void bounce_on_pad();
void bounce_on_sides();
int8_t get_direction_x();
int8_t get_direction_y();
void reset_position ();
uint8_t get_x();
uint8_t get_y();