Class to interface with Sparkfun's Blackberry Trackball Breakout Board.
Dependents: BBTrackball_Sample
Diff: BBTrackball.cpp
- Revision:
- 0:ad0f8a08c470
- Child:
- 1:94c8e1e74dc1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BBTrackball.cpp Thu Dec 08 07:29:12 2011 +0000 @@ -0,0 +1,40 @@ +/* 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++; +}