Add files via upload

This commit is contained in:
Frank Adams 2018-12-02 19:12:44 -08:00 committed by GitHub
parent 6fdee4508e
commit aaaeb7f7ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -644,7 +644,9 @@ void loop() {
over_flow = 0; // assume no overflow until status is received over_flow = 0; // assume no overflow until status is received
trackpoint_error = LOW; // start with no error trackpoint_error = LOW; // start with no error
tp_write(0xeb); // request data tp_write(0xeb); // request data
tp_read(); // ignore ack if (tp_read() != 0xfa) { // verify correct ack byte
trackpoint_error = HIGH;
}
mstat = tp_read(); // save into status variable mstat = tp_read(); // save into status variable
mx = tp_read(); // save into x variable mx = tp_read(); // save into x variable
my = tp_read(); // save into y variable my = tp_read(); // save into y variable