Skip to content

Instantly share code, notes, and snippets.

@derekwheee
Created November 17, 2014 00:10
Show Gist options
  • Save derekwheee/93a2cc3f6f4864c5db83 to your computer and use it in GitHub Desktop.
Save derekwheee/93a2cc3f6f4864c5db83 to your computer and use it in GitHub Desktop.
Nunchuk I2C Read Callback
// Joystick hard left, possible accelerometer action
data: Array[6]
0: 31
1: 127
2: 149
3: 88
4: 134
5: 135
length: 6
// Joystick hard right, possible accelerometer action
data: Array[6]
0: 199
1: 127
2: 156
3: 92
4: 151
5: 127
length: 6
// Joystick center, possible accelerometer action
data: Array[6]
0: 125
1: 124
2: 32
3: 103
4: 38
5: 43
length: 6
// These last 2 are the nunchuk just laying on my desk
data: Array[6]
0: 125
1: 124
2: 128
3: 148
4: 100
5: 235
length: 6
data: Array[6]
0: 125
1: 124
2: 128
3: 148
4: 100
5: 235
length: 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment