@@ -231,7 +231,6 @@ def __init__(self, port=None, name=SYSTEM_DEVICE_NAME_CONVENTION, **kwargs):
231231# ~autogen
232232# ~autogen generic-get-set classes.motor>currentClass
233233
234-
235234 @property
236235 def command (self ):
237236 """
@@ -747,7 +746,6 @@ def __init__(self, port=None, name=SYSTEM_DEVICE_NAME_CONVENTION, **kwargs):
747746# ~autogen
748747# ~autogen generic-get-set classes.dcMotor>currentClass
749748
750-
751749 @property
752750 def command (self ):
753751 """
@@ -979,7 +977,6 @@ def __init__(self, port=None, name=SYSTEM_DEVICE_NAME_CONVENTION, **kwargs):
979977# ~autogen
980978# ~autogen generic-get-set classes.servoMotor>currentClass
981979
982-
983980 @property
984981 def command (self ):
985982 """
@@ -1176,7 +1173,6 @@ def __init__(self, port=None, name=SYSTEM_DEVICE_NAME_CONVENTION, **kwargs):
11761173# ~autogen
11771174# ~autogen generic-get-set classes.sensor>currentClass
11781175
1179-
11801176 @property
11811177 def command (self ):
11821178 """
@@ -1285,7 +1281,6 @@ def bin_data_format(self):
12851281 """
12861282 return self .get_attr_string ('bin_data_format' )
12871283
1288-
12891284 def bin_data (self , fmt = None ):
12901285 """
12911286 Returns the unscaled raw values in the `value<N>` attributes as raw byte
@@ -1344,7 +1339,6 @@ def __init__(self, port=None, name=SYSTEM_DEVICE_NAME_CONVENTION, **kwargs):
13441339# ~autogen
13451340# ~autogen generic-get-set classes.i2cSensor>currentClass
13461341
1347-
13481342 @property
13491343 def fw_version (self ):
13501344 """
@@ -1617,7 +1611,6 @@ def __init__(self, port=None, name=SYSTEM_DEVICE_NAME_CONVENTION, **kwargs):
16171611# ~autogen
16181612# ~autogen generic-get-set classes.led>currentClass
16191613
1620-
16211614 @property
16221615 def max_brightness (self ):
16231616 """
@@ -1974,39 +1967,34 @@ class RemoteControl(ButtonBase):
19741967 on_blue_down = None
19751968 on_beacon = None
19761969
1977-
19781970 @property
19791971 def red_up (self ):
19801972 """
19811973 Checks if `red_up` button is pressed.
19821974 """
19831975 return 'red_up' in self .buttons_pressed
19841976
1985-
19861977 @property
19871978 def red_down (self ):
19881979 """
19891980 Checks if `red_down` button is pressed.
19901981 """
19911982 return 'red_down' in self .buttons_pressed
19921983
1993-
19941984 @property
19951985 def blue_up (self ):
19961986 """
19971987 Checks if `blue_up` button is pressed.
19981988 """
19991989 return 'blue_up' in self .buttons_pressed
20001990
2001-
20021991 @property
20031992 def blue_down (self ):
20041993 """
20051994 Checks if `blue_down` button is pressed.
20061995 """
20071996 return 'blue_down' in self .buttons_pressed
20081997
2009-
20101998 @property
20111999 def beacon (self ):
20122000 """
@@ -2015,7 +2003,6 @@ def beacon(self):
20152003 return 'beacon' in self .buttons_pressed
20162004
20172005
2018-
20192006# ~autogen
20202007
20212008 def __init__ (self , sensor = None , channel = 1 ):
@@ -2059,7 +2046,6 @@ def __init__(self, port=None, name=SYSTEM_DEVICE_NAME_CONVENTION, **kwargs):
20592046# ~autogen
20602047# ~autogen generic-get-set classes.powerSupply>currentClass
20612048
2062-
20632049 @property
20642050 def measured_current (self ):
20652051 """
@@ -2160,7 +2146,6 @@ def __init__(self, port=None, name=SYSTEM_DEVICE_NAME_CONVENTION, **kwargs):
21602146# ~autogen
21612147# ~autogen generic-get-set classes.legoPort>currentClass
21622148
2163-
21642149 @property
21652150 def driver_name (self ):
21662151 """
@@ -2252,7 +2237,6 @@ class FbMem(object):
22522237 # http://sam.zoy.org/wtfpl/COPYING for more details.
22532238 # ------------------------------------------------------------------
22542239
2255-
22562240 __slots__ = ('fid' , 'fix_info' , 'var_info' , 'mmap' )
22572241
22582242 FBIOGET_VSCREENINFO = 0x4600
@@ -2282,7 +2266,6 @@ class FixScreenInfo(ctypes.Structure):
22822266 ('reserved' , ctypes .c_uint16 * 3 ),
22832267 ]
22842268
2285-
22862269 class VarScreenInfo (ctypes .Structure ):
22872270
22882271 class FbBitField (ctypes .Structure ):
@@ -2295,7 +2278,6 @@ class FbBitField(ctypes.Structure):
22952278 ('msb_right' , ctypes .c_uint32 ),
22962279 ]
22972280
2298-
22992281 """The fb_var_screeninfo struct from fb.h."""
23002282
23012283 _fields_ = [
@@ -2315,7 +2297,6 @@ class FbBitField(ctypes.Structure):
23152297 ('transp' , FbBitField ),
23162298 ]
23172299
2318-
23192300 def __init__ (self , fbdev = None ):
23202301 """Create the FbMem framebuffer memory object."""
23212302 fid = FbMem ._open_fbdev (fbdev )
@@ -2326,13 +2307,11 @@ def __init__(self, fbdev=None):
23262307 self .var_info = FbMem ._get_var_info (fid )
23272308 self .mmap = fbmmap
23282309
2329-
23302310 def __del__ (self ):
23312311 """Close the FbMem framebuffer memory object."""
23322312 self .mmap .close ()
23332313 FbMem ._close_fbdev (self .fid )
23342314
2335-
23362315 @staticmethod
23372316 def _open_fbdev (fbdev = None ):
23382317 """Return the framebuffer file descriptor.
@@ -2345,29 +2324,25 @@ def _open_fbdev(fbdev=None):
23452324 fbfid = os .open (dev , os .O_RDWR )
23462325 return fbfid
23472326
2348-
23492327 @staticmethod
23502328 def _close_fbdev (fbfid ):
23512329 """Close the framebuffer file descriptor."""
23522330 os .close (fbfid )
23532331
2354-
23552332 @staticmethod
23562333 def _get_fix_info (fbfid ):
23572334 """Return the fix screen info from the framebuffer file descriptor."""
23582335 fix_info = FbMem .FixScreenInfo ()
23592336 fcntl .ioctl (fbfid , FbMem .FBIOGET_FSCREENINFO , fix_info )
23602337 return fix_info
23612338
2362-
23632339 @staticmethod
23642340 def _get_var_info (fbfid ):
23652341 """Return the var screen info from the framebuffer file descriptor."""
23662342 var_info = FbMem .VarScreenInfo ()
23672343 fcntl .ioctl (fbfid , FbMem .FBIOGET_VSCREENINFO , var_info )
23682344 return var_info
23692345
2370-
23712346 @staticmethod
23722347 def _map_fb_memory (fbfid , fix_info ):
23732348 """Map the framebuffer memory."""
@@ -2488,7 +2463,6 @@ def beep(args=''):
24882463 with open (os .devnull , 'w' ) as n :
24892464 return Popen ('/usr/bin/beep %s' % args , stdout = n , shell = True )
24902465
2491-
24922466 @staticmethod
24932467 def tone (tone_sequence ):
24942468 """
@@ -2531,7 +2505,6 @@ def beep_args(frequency=None, duration=None, delay=None):
25312505
25322506 return Sound .beep (' ' .join ([beep_args (* t ) for t in tone_sequence ]))
25332507
2534-
25352508 @staticmethod
25362509 def play (wav_file ):
25372510 """
@@ -2540,7 +2513,6 @@ def play(wav_file):
25402513 with open (os .devnull , 'w' ) as n :
25412514 return Popen ('/usr/bin/aplay -q "%s"' % wav_file , stdout = n , shell = True )
25422515
2543-
25442516 @staticmethod
25452517 def speak (text ):
25462518 """
0 commit comments