------------------------------------------
-- Simple TI-Nspire temperature monitor --
------------------------------------------

What do I need?

	- An Arduino that has been configured to use USB VID 0x0451 and PID 0xBEF3
	  With an Arduino Leonardo you can easily configure this in boards.txt 
	- One of the following one wire temperature sensors: 
	  DS18B20, DS18S20, DS1822 or DS1820
	- A TI-Nspire running OS 4.2 or later
	- An USB cable that you can use between your Arduino and TI-Nspire

How do I hook all these compontents together?

 	See the attached diagram.
	
	Data pin to port 10. VCC to VCC. GND to GND. 
	Add a 4.7KOhm register between VCC and the data pin.
	
	Build temp.c and upload it to your Arduino (you might need some libraries from https://milesburton.com/Dallas_Temperature_Control_Library)

	Send temp.tns to your TI-Nspire and run it. Connect the Arduino to your TI-Nspire.
	You should now be seeing the sensor temperature on your TI-Nspire.

How does this work?

	The TI-Nspire document contains a Lua script that utilizes the ASI api introduced in API Level 2.7. The ASI API can talk with USB CDC devices using a serial interface (provided that they have a whitelisted PID/VID). With that it's fairly easy to have communication between an Arduino and a TI-Nspire.

Credits:

	Jim Bauwens (Author)
	Xavier "critor" Andréani (initial ASI board testing and discoveries)

License:

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
