 #define BEZIER_SEGMENTS				(30)
 // #define STEPS_PER_RADIAN			(648.68)
 // #define Z_SQARE						(10000) // 19700
-#define LAMP_FADE_MS				(150)
+#define LAMP_FADE_MS				(50)
 #define EEPROM_RECORD_ADDRESS		(0)
 #define EEPROM_STATUS_VALID			(0x55)
 // #define EEPROM_STATUS_INVALID		(0xAA)

	set_laser(false);
	set_lamp(255);
	delay(1000);

	EEPROM.get(EEPROM_RECORD_ADDRESS, eeprom_record);
	switch (eeprom_record.status) {

			write_current_position_to_eeprom();
		break;
	}
}

/* called repeatedly after "setup" */
void loop() {
	static uint8_t index = 0;
	bool is_last_point = false;
    
	while(PINB & BUTTON_MASK) {
		lamp_fade();
	}
	set_lamp(0);

	draw_next_path(index, false);
	++index;
	if (draw_next_path(index, true)) {
