tree: 58c9b2791eb14adb0b2538e1b1c3135aaa1ff318 [path history] [tgz]
  1. __init__.py
  2. android.py
  3. chromeos.py
  4. linux.py
  5. linux_unittest.py
  6. pit.py
  7. README.md
  8. snow.py
  9. spring.py
py/device/boards/README.md

Device API: Boards Implementation

This folder contains implementations for different boards.

To add your own class, inherit from one board and override your Device properties:

from cros.factory.device import types
from cros.factory.device import power

class MyPower(power.Power):
  def CheckACPresent(self):
    return False

class MyBoard(types.DeviceBoard):

  @types.DeviceProperty
  def power(self):
    return MyPower(self)