mirror of
https://github.com/pothos/arduino-n64-controller-library
synced 2024-11-21 16:25:11 -05:00
Remove unused variables
This commit is contained in:
parent
4458b8f80c
commit
4b87634fcc
@ -143,8 +143,6 @@ void N64Controller::N64_init_PINB(char pincode) {
|
|||||||
void N64Controller::N64_PIND_send(char pincode, unsigned char *buffer, char length) {
|
void N64Controller::N64_PIND_send(char pincode, unsigned char *buffer, char length) {
|
||||||
// Send these bytes
|
// Send these bytes
|
||||||
char bits;
|
char bits;
|
||||||
|
|
||||||
bool bit;
|
|
||||||
|
|
||||||
// This routine is very carefully timed by examining the assembly output.
|
// This routine is very carefully timed by examining the assembly output.
|
||||||
// Do not change any statements, it could throw the timings off
|
// Do not change any statements, it could throw the timings off
|
||||||
@ -256,7 +254,6 @@ inner_loop:
|
|||||||
|
|
||||||
void N64Controller::N64_PINB_send(char pincode, unsigned char *buffer, char length) {
|
void N64Controller::N64_PINB_send(char pincode, unsigned char *buffer, char length) {
|
||||||
char bits;
|
char bits;
|
||||||
bool bit;
|
|
||||||
asm volatile (";Starting outer for loop");
|
asm volatile (";Starting outer for loop");
|
||||||
outer_loop:
|
outer_loop:
|
||||||
{
|
{
|
||||||
@ -404,7 +401,6 @@ read_loop:
|
|||||||
|
|
||||||
void N64Controller::print_N64_status()
|
void N64Controller::print_N64_status()
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
// bits: A, B, Z, Start, Dup, Ddown, Dleft, Dright
|
// bits: A, B, Z, Start, Dup, Ddown, Dleft, Dright
|
||||||
// bits: 0, 0, L, R, Cup, Cdown, Cleft, Cright
|
// bits: 0, 0, L, R, Cup, Cdown, Cleft, Cright
|
||||||
Serial.println();
|
Serial.println();
|
||||||
@ -495,7 +491,6 @@ void N64Controller::translate_raw_data()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void N64Controller::update() {
|
void N64Controller::update() {
|
||||||
unsigned char data, addr;
|
|
||||||
unsigned char command[] = {0x01};
|
unsigned char command[] = {0x01};
|
||||||
if (n64_first_register) {
|
if (n64_first_register) {
|
||||||
noInterrupts();
|
noInterrupts();
|
||||||
|
Loading…
Reference in New Issue
Block a user