Class to interface with Sparkfun's Blackberry Trackball Breakout Board.

Dependents:   BBTrackball_Sample

BBTrackball.cpp

Committer:
AdamGreen
Date:
2011-12-08
Revision:
0:ad0f8a08c470
Child:
1:94c8e1e74dc1

File content as of revision 0:ad0f8a08c470:

/* Copyright 2011 Adam Green (http://mbed.org/users/AdamGreen/)

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/
/* Implementation of class to control Sparkfun's Blackberry Trackball:
     http://www.sparkfun.com/products/9320
*/
#include "BBTrackball.h"



void CBBTrackball::UpISR(void)
{
    m_UpCount++;
}

void CBBTrackball::DownISR(void)
{
    m_DownCount++;
}

void CBBTrackball::LeftISR(void)
{
    m_LeftCount++;
}

void CBBTrackball::RightISR(void)
{
    m_RightCount++;
}