Ejemplo n.º 1
0
RenderThread::RenderThread(QObject *parent) :
    QThread(parent),
    renderprocess(NULL)
{
    // Set options to defaults in case they are somehow not set earlier
    setFormat();
    setFrameRange();
    setSwitches();
    // This is so that the render process actually starts in a new thread instead of 'run()'
    connect(this, SIGNAL(cli(QString,QStringList)),
            this, SLOT(executeRenderCommand(QString,QStringList)));
}
Ejemplo n.º 2
0
int main(int argc, char **argv) {

  signal(SIGALRM, handle);
  declareTermiosCrap();
  wiringPiSetup();
  setPins(pinRed, pinGreen, pinBlue, pinWhite);
  setSwitches();
  blinkLights(pinRed, pinGreen, pinBlue, pinWhite);
  repeatColors();
  verify();
  

	tcsetattr(0, TCSANOW, &initial_settings);
	return 0;
}