#ifndef SENSOR_H #define SENSOR_H #include // Include hardware libraries as needed #include "hardware/i2c.h" #include "hardware/gpio.h" #include "mpu6050.h" // // Global variables // extern int screen_x; // extern int screen_y; // Function Prototypes void setup(); int process_gyro_data_for_x(fix15 *gyro); int process_acceleration_data_for_y(fix15 *acceleration); int clamp_movement(int movement); void getData(volatile bool userClicked,volatile bool *is_calibrated, volatile int* screen_x, volatile int* screen_y); void calculate_relative_movement(fix15 *reference, fix15 *current, int *dx, int *dy); void map_to_screen_coordinates(int dx, int dy, volatile int *screen_x,volatile int *screen_y); void update_cursor_on_VGA(int x, int y); #endif