Driver Programming

From SweepMe! Wiki
Revision as of 09:34, 9 November 2017 by Afischer (talk | contribs)
Jump to navigation Jump to search

A Device Class is a main.py file in which a python class-Object is inherited from a parent class called EmptyDeviceClass. EmptyDeviceClass has to be loaded at the beginning like any other python module by using the line:

from EmptyDeviceClass import EmptyDevice

    class Device(EmptyDevice):

        def __init__(self):
        
           EmptyDevice.__init__(self)

This EmptyDevice object has all basic function included which do