diff --git a/ExampleImage.png b/ExampleImage.png deleted file mode 100644 index 03094cc..0000000 Binary files a/ExampleImage.png and /dev/null differ diff --git a/README.md b/README.md index a9bcdb4..8baf1e3 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,2 @@ # Omron-Arduino -Arduino code to get data out of the incredible 4x4 IR OMRON MEMS sensor. -Omron D6T is a MEMS IR sensor that has the distinct advantage of sensing human presence even if the individual is stationary. The sensor array also allow sensing of movement direction of the person. - -Example Image from the Omron D6T 4x4 array: - -![alt tag](ExampleImage.png?raw=true "Image Title") - -In this image the brighter pixels correspond to a warmer body. Note that the OMRON D6T-44L returns data in a 4x4 format. To view the result in a large image like this, I used Matlab to resize to a much larger image and mapped the image intensities with some sensible intensity transforms (power transform). +Arduino code to read Omron D6T IR sensor. diff --git a/WireExt.h b/WireExt.h deleted file mode 100644 index bf58975..0000000 --- a/WireExt.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - WireExt.h - TWI/I2C extension library for Arduino & Wiring - Copyright (c) 2010 fenrir(M.Naruoka). All right reserved. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ - -#ifndef WireExt_h -#define WireExt_h - -#include - -class TwoWireExt -{ - private: - uint8_t orig_twbr; - public: - TwoWireExt(); - int8_t beginReception(uint8_t); - int8_t beginReception(uint8_t, int); - void endReception(void); - uint8_t get_byte(); -}; - -extern TwoWireExt WireExt; - -#endif - diff --git a/libraries/WireExt.zip b/libraries/WireExt.zip deleted file mode 100644 index 4edd807..0000000 Binary files a/libraries/WireExt.zip and /dev/null differ diff --git a/libraries/WireExt/WireExt.cpp b/libraries/WireExt/WireExt.cpp index 1157a44..cfd1b8b 100644 --- a/libraries/WireExt/WireExt.cpp +++ b/libraries/WireExt/WireExt.cpp @@ -31,6 +31,13 @@ extern "C" { #include "WireExt.h" +#if defined (__AVR_ATmega328PB__) + #define TWBR TWBR0 + #define TWCR TWCR0 + #define TW_STATUS TWSR0 + #define TWDR TWDR0 +#endif + // Initialize Class Variables ////////////////////////////////////////////////// // Constructors ////////////////////////////////////////////////////////////////