<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.lvl1.org/index.php?action=history&amp;feed=atom&amp;title=Pseudo-Medical_Monitor_Code_NonContactThermometer_STUFF</id>
	<title>Pseudo-Medical Monitor Code NonContactThermometer STUFF - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.lvl1.org/index.php?action=history&amp;feed=atom&amp;title=Pseudo-Medical_Monitor_Code_NonContactThermometer_STUFF"/>
	<link rel="alternate" type="text/html" href="http://wiki.lvl1.org/index.php?title=Pseudo-Medical_Monitor_Code_NonContactThermometer_STUFF&amp;action=history"/>
	<updated>2026-11-14T09:26:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>http://wiki.lvl1.org/index.php?title=Pseudo-Medical_Monitor_Code_NonContactThermometer_STUFF&amp;diff=14921&amp;oldid=prev</id>
		<title>Unknown user: Created page with &quot; &lt;nowiki&gt;  IRTherm therm; // Create an IRTherm object to interact with throughout  int last_object_measurement = -1; int last_field_measurement = -1;  int NonContactThermomete...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.lvl1.org/index.php?title=Pseudo-Medical_Monitor_Code_NonContactThermometer_STUFF&amp;diff=14921&amp;oldid=prev"/>
		<updated>2021-12-14T21:01:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; &amp;lt;nowiki&amp;gt;  IRTherm therm; // Create an IRTherm object to interact with throughout  int last_object_measurement = -1; int last_field_measurement = -1;  int NonContactThermomete...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; &amp;lt;nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
IRTherm therm; // Create an IRTherm object to interact with throughout&lt;br /&gt;
&lt;br /&gt;
int last_object_measurement = -1;&lt;br /&gt;
int last_field_measurement = -1;&lt;br /&gt;
&lt;br /&gt;
int NonContactThermometer_x_offset = 0;&lt;br /&gt;
int NonContactThermometer_y_offset = 0;&lt;br /&gt;
int NonContactThermometer_x_width = 44;&lt;br /&gt;
int NonContactThermometer_y_height = 74;&lt;br /&gt;
&lt;br /&gt;
bool setup_NonContactThermometer()&lt;br /&gt;
{&lt;br /&gt;
  if (therm.begin() == false) &lt;br /&gt;
    { // Initialize thermal IR sensor&lt;br /&gt;
      Serial.println(&amp;quot;IR thermometer Failed&amp;quot;);&lt;br /&gt;
      return(false);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
  therm.setUnit(TEMP_F); // Set the library&amp;#039;s units to Farenheit&lt;br /&gt;
  therm.read();&lt;br /&gt;
&lt;br /&gt;
  return(true);&lt;br /&gt;
//  therm.setEmissivity(0.98);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
void NonContactThermometer_Reset()&lt;br /&gt;
{&lt;br /&gt;
  last_object_measurement = -1;&lt;br /&gt;
  last_field_measurement = -1;  &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void NonContactThermometer_Frame()&lt;br /&gt;
{&lt;br /&gt;
  int box_top = NonContactThermometer_y_offset;&lt;br /&gt;
  int box_left = NonContactThermometer_x_offset;&lt;br /&gt;
  &lt;br /&gt;
  int box_width = NonContactThermometer_x_width;&lt;br /&gt;
  int box_height = NonContactThermometer_y_height;&lt;br /&gt;
&lt;br /&gt;
  int title_x_offset = box_left + 1;&lt;br /&gt;
  int title_y_offset = box_top + 2;&lt;br /&gt;
  int field_x_offset = box_left + 1;&lt;br /&gt;
  int field_y_offset = box_top + 24;&lt;br /&gt;
  int object_x_offset = box_left + 1;&lt;br /&gt;
  int object_y_offset = box_top + 48;&lt;br /&gt;
&lt;br /&gt;
  float field_measurement;&lt;br /&gt;
  float object_measurement;&lt;br /&gt;
&lt;br /&gt;
  if ((last_field_measurement == -1) &amp;amp;&amp;amp; (last_object_measurement == -1))&lt;br /&gt;
    {&lt;br /&gt;
      DrawScreenCompartment(box_left, box_top, box_width, box_height, COMMON_BLACK, COMMON_RED);&lt;br /&gt;
&lt;br /&gt;
      DrawScreenText(title_x_offset+4,title_y_offset,&amp;quot;MLX90&amp;quot;,COMMON_WHITE,COMMON_BLACK);&lt;br /&gt;
      DrawScreenText(title_x_offset+11,title_y_offset+12,&amp;quot;164&amp;quot;,COMMON_WHITE,COMMON_BLACK);&lt;br /&gt;
            &lt;br /&gt;
      DrawScreenText(field_x_offset,field_y_offset,&amp;quot;Field&amp;quot;,COMMON_WHITE,COMMON_BLACK);&lt;br /&gt;
      DrawScreenText(object_x_offset,object_y_offset,&amp;quot;Object&amp;quot;,COMMON_WHITE,COMMON_BLACK);      &lt;br /&gt;
    }  &lt;br /&gt;
  &lt;br /&gt;
  therm.read();&lt;br /&gt;
  field_measurement = therm.ambient();&lt;br /&gt;
  delay(20);&lt;br /&gt;
  object_measurement = therm.object();&lt;br /&gt;
  delay(20);&lt;br /&gt;
  &lt;br /&gt;
  if ( last_field_measurement != field_measurement)&lt;br /&gt;
    {&lt;br /&gt;
        DrawScreenText(field_x_offset,field_y_offset+12,&amp;quot;      &amp;quot;,COMMON_WHITE,COMMON_BLACK);&lt;br /&gt;
        DrawScreenText(field_x_offset,field_y_offset+12,String(field_measurement, 2),COMMON_WHITE,COMMON_BLACK);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
  if ( last_object_measurement != object_measurement)&lt;br /&gt;
    {  &lt;br /&gt;
        DrawScreenText(object_x_offset,object_y_offset+12,&amp;quot;      &amp;quot;,COMMON_WHITE,COMMON_BLACK);&lt;br /&gt;
        DrawScreenText(object_x_offset,object_y_offset+12,String(object_measurement, 2),COMMON_WHITE,COMMON_BLACK);      &lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
  last_field_measurement = field_measurement;&lt;br /&gt;
  last_object_measurement = object_measurement;      &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Pseudo-Medical_Monitor_Code#Custom_Includes]]&lt;/div&gt;</summary>
		<author><name>Unknown user</name></author>
	</entry>
</feed>