 		constellationI++;
 		
 		TV.delay(700);
+		//sp(1,1,1);
 
 		checkSceneEnded(20);
 }

		}
}

void setup() {
		TV.begin(PAL, WIDTH, HEIGHT);
		TV.clear_screen();
  		//TV.select_font(font4x6);
  		TV.select_font(font6x8);
  		//TV.select_font(font8x8);
		startTime = TV.millis();
		randomSeed(analogRead(0));

		pinMode(LED_PIN, OUTPUT);
		digitalWrite(LED_PIN, LOW);
}

bool checkSceneEnded(long seconds) {
		//return false;

		if (TV.millis() - startTime > seconds * 1000) {
				sceneCounter++;
				if (sceneCounter == TOTAL) {

		}
}


void blindsScene(bool changed) {
		if (changed) {
				TV.bitmap(BMP_X, BMP_Y, getRandomSymbol());
				screenToBackBuffer();
				TV.clear_screen();
		}

		for (int i = 0; i < HEIGHT; i++) {
				for (int j = 0; j < WIDTH / 8; j++) {
						backBuffer[i][j] += 1;
				}
		}

		backBufferToScreen();

		checkSceneEnded(10);
}

void fadeInScene(bool changed) {
		if (changed) {
				TV.bitmap(BMP_X, BMP_Y, getRandomSymbol());
				screenToBackBuffer();
				TV.clear_screen();
		}

		int x = random(WIDTH);
		int y = random(HEIGHT);

		if (backBufferGet(x, y)) {
				TV.set_pixel(x, y, 1);
		}

		if (checkSceneEnded(20)) {
				TV.delay(1000);
		}
}

void loop() {
		bool changed = false;
		if (currentScene != lastScene) {
