mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2025-12-12 18:28:50 +01:00
26 lines
440 B
C
26 lines
440 B
C
#ifndef TRACKBALL_H
|
|
#define TRACKBALL_H
|
|
|
|
#include "devterm.h"
|
|
|
|
#include "keys_io_map.h"
|
|
|
|
/*
|
|
#define BOUNCE_INTERVAL 30
|
|
#define BASE_MOVE_PIXELS 5
|
|
#define EXPONENTIAL_BOUND 15
|
|
#define EXPONENTIAL_BASE 1.2
|
|
*/
|
|
|
|
#define RIGHT_PIN HO2
|
|
#define LEFT_PIN HO4
|
|
#define DOWN_PIN HO3
|
|
#define UP_PIN HO1
|
|
|
|
|
|
void trackball_init(DEVTERM*);
|
|
void trackball_task(DEVTERM*);
|
|
|
|
|
|
#endif
|