-
Notifications
You must be signed in to change notification settings - Fork 0
/
N64Controllers.h
60 lines (52 loc) · 1.53 KB
/
N64Controllers.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// N64Controllers.h
#ifndef _N64CONTROLLERS_h
#define _N64CONTROLLERS_h
// N64 controller calibrations.
// Calibration is different for each controller.
//struct N64ControllerConfiguration
//{
// const char* SerialNumber = "00000000000000000001";
// static const uint32_t ControllerPin = PA4;
// static const uint8_t LedBrightness = 0;
//
// static const int8_t JoyXMin = -82;
// static const int8_t JoyXMax = 79;
// static const int8_t JoyXOffset = -1;
//
// static const int8_t JoyYMin = -81;
// static const int8_t JoyYMax = 83;
// static const int8_t JoyYOffset = 1;
//
// static const uint8_t JoyDeadZoneRadius = 0;
//};
//struct N64ControllerConfiguration
//{
// const char* SerialNumber = "00000000000000000002";
// static const uint32_t ControllerPin = 31;
// static const uint8_t LedBrightness = 8;
//
//
// static const int8_t JoyXMin = -80;
// static const int8_t JoyXMax = 80;
// static const int8_t JoyXOffset = 0;
//
// static const int8_t JoyYMin = -80;
// static const int8_t JoyYMax = 80;
// static const int8_t JoyYOffset = 0;
//
// static const uint8_t JoyDeadZoneRadius = 1;
//};
// Serial 2 upgraded with JoyBus over Serial.
struct N64ControllerConfiguration
{
const char* SerialNumber = "00000000000000000003";
static const uint8_t LedBrightness = 8;
static const int8_t JoyXMin = -80;
static const int8_t JoyXMax = 80;
static const int8_t JoyXOffset = 0;
static const int8_t JoyYMin = -80;
static const int8_t JoyYMax = 80;
static const int8_t JoyYOffset = 0;
static const uint8_t JoyDeadZoneRadius = 0;
};
#endif