Skip to content
This repository has been archived by the owner on Nov 23, 2019. It is now read-only.

Commit

Permalink
Merge pull request #17 from schoolsplay/master
Browse files Browse the repository at this point in the history
Small changes to use new style classes
  • Loading branch information
topikachu committed Aug 2, 2014
2 parents 795f10d + 6617880 commit f705127
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ev3/ev3dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ def fset(self, value):
class LEDLight(Ev3Dev):

def __init__(self, light_path):
super(Ev3Dev, self).__init__()
self.sys_path = '/sys/class/leds/' + light_path


Expand Down Expand Up @@ -427,7 +428,6 @@ def off(self):


class LED(object):
COLOR = Enum(RED=1, GREEN=2, AMBER=3)

class COLOR:
RED = 1
Expand All @@ -446,6 +446,7 @@ class COLOR:
class Tone(Ev3Dev):

def __init__(self):
super(Ev3Dev, self).__init__()
self.sys_path = '/sys/devices/platform/snd-legoev3'

def play(self, frequency, milliseconds=0):
Expand All @@ -457,7 +458,7 @@ def stop(self):
import os


class Lcd():
class Lcd(object):

def __init__(self):
try:
Expand Down

0 comments on commit f705127

Please sign in to comment.