This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * ON/OFF TFT Push Button Grid | |
| * Each button is assigned to a digital output, which | |
| * may be used to illuminate an LED (or other purpose). | |
| * Two additional btns are used to turn all LED on or off. | |
| * Boolean state of each button coincides with HIGH or LOW. | |
| * For use with Adafruit 2.8" TFT LCD - resistive. | |
| * Any of the four screen rotations may be used. | |
| * LED resistors are 220 ohm. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, | |
| INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A | |
| PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | |
| HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF | |
| CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE | |
| OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //*** ECG displayed on Adafruit 2.8" LCD v.2 using Arduino UNO board **** // | |
| // ************************************************************** // | |
| // * This source code is provided by the author "AS IS", * // | |
| // * without warranty of any kind, either express or implied. * // | |
| // ************************************************************** // | |
| #include "SPI.h" | |
| #include "Adafruit_GFX.h" | |
| #include "Adafruit_ILI9341.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // compile in Terminal | |
| // $ clang WndClass.mm -framework AppKit -o guiPlus | |
| // run in Terminal | |
| // $ ./guiPlus | |
| #include <AppKit/AppKit.h> | |
| NSTextView *txtView; | |
| //prints formatted NSString with line feed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * DFRobot Heart Rate Monitor v1.0 (Gravity) with Arduino UNO | |
| * to display electrocardiogram on Adafruit 2.8" TFT LCD shield (resistive). | |
| * Screen height (landscape) is 240 pixels. Output numbers are too large | |
| * to fit on screen, therefore sensorValue is divided by two or more. | |
| * Graph origin is normally left,top and must be relocated to left,bottom. | |
| * YOffset moves origin and helps position trace on screen; the larger the sensorValue, | |
| * the larger YOffset must be in order to display ECG in center of screen. | |
| * For larger trace size it is usually greater than tft.height(). | |
| */ |