iOS/Csound iOS Obj-C Examples/Csound iOS Examples/ViewControllers/HardwareTest/HardwareTestViewController.h
raw symbols SCIP| 1 | /* |
| 2 | |
| 3 | HardwareTestViewController.h: |
| 4 | |
| 5 | Copyright (C) 2011 Steven Yi |
| 6 | |
| 7 | This file is part of Csound iOS Examples. |
| 8 | Updated in 2017 by Dr. Richard Boulanger, Nikhil Singh |
| 9 | |
| 10 | The Csound for iOS Library is free software; you can redistribute it |
| 11 | and/or modify it under the terms of the GNU Lesser General Public |
| 12 | License as published by the Free Software Foundation; either |
| 13 | version 2.1 of the License, or (at your option) any later version. |
| 14 | |
| 15 | Csound is distributed in the hope that it will be useful, |
| 16 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | GNU Lesser General Public License for more details. |
| 19 | |
| 20 | You should have received a copy of the GNU Lesser General Public |
| 21 | License along with Csound; if not, write to the Free Software |
| 22 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
| 23 | 02111-1307 USA |
| 24 | |
| 25 | */ |
| 26 | |
| 27 | #import <UIKit/UIKit.h> |
| 28 | #import <CoreMotion/CoreMotion.h> |
| 29 | #import "BaseCsoundViewController.h" |
| 30 | |
| 31 | @interface HardwareTestViewController : BaseCsoundViewController<CsoundObjListener> { |
| 32 | |
| 33 | IBOutlet UISwitch *mSwitch; |
| 34 | |
| 35 | IBOutlet UILabel *accX; |
| 36 | IBOutlet UILabel *accY; |
| 37 | IBOutlet UILabel *accZ; |
| 38 | |
| 39 | IBOutlet UILabel *gyroX; |
| 40 | IBOutlet UILabel *gyroY; |
| 41 | IBOutlet UILabel *gyroZ; |
| 42 | |
| 43 | IBOutlet UILabel *roll; |
| 44 | IBOutlet UILabel *pitch; |
| 45 | IBOutlet UILabel *yaw; |
| 46 | |
| 47 | CMMotionManager *motionManager; |
| 48 | } |
| 49 | |
| 50 | -(IBAction) toggleOnOff:(id)component; |
| 51 | |
| 52 | @end |