import time
from serial import Serial


class RemoteControl:

    def __init__(self, dev_name):
        self.conn = Serial(dev_name)

    def hasWaiting(self):
        if self.conn.inWaiting() > 0:
            return True
        else:
            return False

    def read(self):
        readIn = self.conn.readline()
        line = readIn.rstrip()
        return int(line)

912495c00330856fa4197c275e640bab2c093ac2
<mask token>


class RemoteControl:

    def __init__(self, dev_name):
        self.conn = Serial(dev_name)
    <mask token>
    <mask token>

<mask token>


class RemoteControl:

    def __init__(self, dev_name):
        self.conn = Serial(dev_name)

    def hasWaiting(self):
        if self.conn.inWaiting() > 0:
            return True
        else:
            return False
    <mask token>

<mask token>


class RemoteControl:

    def __init__(self, dev_name):
        self.conn = Serial(dev_name)

    def hasWaiting(self):
        if self.conn.inWaiting() > 0:
            return True
        else:
            return False

    def read(self):
        readIn = self.conn.readline()
        line = readIn.rstrip()
        return int(line)

import time
from serial import Serial


class RemoteControl:

    def __init__(self, dev_name):
        self.conn = Serial(dev_name)

    def hasWaiting(self):
        if self.conn.inWaiting() > 0:
            return True
        else:
            return False

    def read(self):
        readIn = self.conn.readline()
        line = readIn.rstrip()
        return int(line)
