1 # Copyright 2017 The Chromium OS Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 """This module defines the motor board interface. 6 7 For example, chameleon is a ChameleonBoard object. 8 - Get motor board: 9 10 motor = chameleon.get_motor_board 11 12 - Touch/Release actions: 13 14 motor.Touch(ButtonFunction.CALL) 15 motor.Release(ButtonFunction.CALL) 16 17 """ 18 19 20 class ButtonFunction(object): 21 """Button functions that motor touch/release.""" 22 CALL = 'Call' 23 HANG_UP = 'Hang Up' 24 MUTE = 'Mute' 25 VOL_UP = 'Vol Up' 26 VOL_DOWN = 'Vol Down' 27