Skip to content

Commit 4a87384

Browse files
committed
Remove the attribute cache
- Class template creates instance vars for attribute file handles - GetSet template uses new api for attributes - Device code no longer uses attribute cache - Use Python's super() function to handle __init__
1 parent 1c9265d commit 4a87384

File tree

6 files changed

+442
-237
lines changed

6 files changed

+442
-237
lines changed

ev3dev/brickpi.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,12 @@ class Leds(object):
4747

4848
# ~autogen led-colors platforms.brickpi.led>currentClass
4949

50-
blue_led1 = Led(name_pattern='brickpi1:blue:ev3dev')
51-
blue_led2 = Led(name_pattern='brickpi2:blue:ev3dev')
50+
blue_led1 = Led(name_pattern='brickpi:led1:blue:ev3dev')
51+
blue_led2 = Led(name_pattern='brickpi:led2:blue:ev3dev')
5252

5353
LED1 = ( blue_led1, )
5454
LED2 = ( blue_led2, )
5555

56-
BLACK = ( 0, )
5756
BLUE = ( 1, )
5857

5958
@staticmethod

0 commit comments

Comments
 (0)