from threading import Thread
from atlasbuggy.robot import Robot
from atlasbuggy.interface import RobotRunner
from actuators.underglow import Underglow

import cmd


class UnderglowTest(Robot):
    def __init__(self):
        self.underglow = Underglow()
        super(UnderglowTest, self).__init__(self.underglow)


class UnderglowCommandline(cmd.Cmd):
    def do_glow(self, line):
        glow.underglow.fancy_gradient(int(line))

    def do_q(self, line):
        print("\r", end="")
        runner.exit()
        return True


glow = UnderglowTest()
runner = RobotRunner(glow, log_data=False)

command_line = UnderglowCommandline()


def run_commands():
    command_line.cmdloop()


t = Thread(target=run_commands)
t.daemon = True
t.start()

runner.run()

de4dbcec51b1d7d74b50fbc018580fdbb8292373
<mask token>


class UnderglowTest(Robot):

    def __init__(self):
        self.underglow = Underglow()
        super(UnderglowTest, self).__init__(self.underglow)


class UnderglowCommandline(cmd.Cmd):

    def do_glow(self, line):
        glow.underglow.fancy_gradient(int(line))

    def do_q(self, line):
        print('\r', end='')
        runner.exit()
        return True


<mask token>


def run_commands():
    command_line.cmdloop()


<mask token>

<mask token>


class UnderglowTest(Robot):

    def __init__(self):
        self.underglow = Underglow()
        super(UnderglowTest, self).__init__(self.underglow)


class UnderglowCommandline(cmd.Cmd):

    def do_glow(self, line):
        glow.underglow.fancy_gradient(int(line))

    def do_q(self, line):
        print('\r', end='')
        runner.exit()
        return True


<mask token>


def run_commands():
    command_line.cmdloop()


<mask token>
t.start()
runner.run()

<mask token>


class UnderglowTest(Robot):

    def __init__(self):
        self.underglow = Underglow()
        super(UnderglowTest, self).__init__(self.underglow)


class UnderglowCommandline(cmd.Cmd):

    def do_glow(self, line):
        glow.underglow.fancy_gradient(int(line))

    def do_q(self, line):
        print('\r', end='')
        runner.exit()
        return True


glow = UnderglowTest()
runner = RobotRunner(glow, log_data=False)
command_line = UnderglowCommandline()


def run_commands():
    command_line.cmdloop()


t = Thread(target=run_commands)
t.daemon = True
t.start()
runner.run()

from threading import Thread
from atlasbuggy.robot import Robot
from atlasbuggy.interface import RobotRunner
from actuators.underglow import Underglow
import cmd


class UnderglowTest(Robot):

    def __init__(self):
        self.underglow = Underglow()
        super(UnderglowTest, self).__init__(self.underglow)


class UnderglowCommandline(cmd.Cmd):

    def do_glow(self, line):
        glow.underglow.fancy_gradient(int(line))

    def do_q(self, line):
        print('\r', end='')
        runner.exit()
        return True


glow = UnderglowTest()
runner = RobotRunner(glow, log_data=False)
command_line = UnderglowCommandline()


def run_commands():
    command_line.cmdloop()


t = Thread(target=run_commands)
t.daemon = True
t.start()
runner.run()

from threading import Thread
from atlasbuggy.robot import Robot
from atlasbuggy.interface import RobotRunner
from actuators.underglow import Underglow

import cmd


class UnderglowTest(Robot):
    def __init__(self):
        self.underglow = Underglow()
        super(UnderglowTest, self).__init__(self.underglow)


class UnderglowCommandline(cmd.Cmd):
    def do_glow(self, line):
        glow.underglow.fancy_gradient(int(line))

    def do_q(self, line):
        print("\r", end="")
        runner.exit()
        return True


glow = UnderglowTest()
runner = RobotRunner(glow, log_data=False)

command_line = UnderglowCommandline()


def run_commands():
    command_line.cmdloop()


t = Thread(target=run_commands)
t.daemon = True
t.start()

runner.run()
