TalkBot_Slave6.c is an optional firmware that can be used in the
TalkBotBrain instead of the original Slave1 firmware. To install this
firmware in the TalkBotBrain you will need a PIC programmer that can
in-circuit program the PIC 16F628.
For more info, see;
www.TalkBotBrain.com/TalkBot_SourceFiles.htm

/******************************************************************************
	TalkBot_Slave6.c      v1.0    29th July 2009 - Roman Black
	Open-source-firmware for TalkBotBrain product from BlackRobotics.com
	This firmware is open-source for use by legitimate owners
	who purchased a TalkBotBrain. All rights to the TalkBot hardware
	circuitry design remain property of BlackRobotics.

	This is TalkBot_Slave6 - It is a simple sound player,
	it does not drive servos. When BUT1 is pressed, or
	an external button on PORTB.5 goes low, Slave6 uses a
	random system to choose and play one of the sounds (max 255 sounds).
	It does not use RX or TX serial commands. It still does serial
	download of sound library from PC at 19200 baud.

	Slave6 uses a special function; get_number_sounds()
	to read the external eeprom header and find out how many
	sounds are stored in the sound library.

	TalkBot1 uses a PIC 16F628 and 2x 24LC512 i2c eeproms (1Megabit).

	Slave 6; The external button is on;
	 PORTB 5 (button is active low. Low = play a random sound)

	For more TalkBot applications and FREE Sound Library files;
	 www.TalkBotBrain.com

******************************************************************************/