Example Host software for integration of MAX3266x chips (, MAX32664GWEB) equipped with Heart Rate from Wrist Algorithm. This is “stand-alone” software that runs on the MAX32630 low-power microcontroller to display heart rate on the display of the MAXREFDES101 reference design. It is intended provide a simple example of how to initialize and communicate with the sensor hub. Windows and Android communications are not supported.
Dependencies: Maxim_Sensor_Hub_Communications BMI160 whrmDemoUI max32630hsp3
Fork of Host_Software_MAX32664GWEB_HR_wrist by
Diff: demoUI/screen/TextDisplay.cpp
- Revision:
- 2:1af4d95add5d
- Parent:
- 1:b5aaf58d8728
- Child:
- 3:36e4f7e7a91a
diff -r b5aaf58d8728 -r 1af4d95add5d demoUI/screen/TextDisplay.cpp
--- a/demoUI/screen/TextDisplay.cpp Mon Dec 17 07:48:29 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,93 +0,0 @@
-/* mbed TextDisplay Display Library Base Class
- * Copyright (c) 2007-2009 sford
- * Released under the MIT License: http://mbed.org/license/mit
- */
-
-#include "../screen/TextDisplay.h"
-
-#include <cstdarg>
-
-TextDisplay::TextDisplay(const char *name){
- _row = 0;
- _column = 0;
-
- if (name == NULL) {
- _path = NULL;
- } else {
- _path = new char[strlen(name) + 2];
- sprintf(_path, "/%s", name);
- }
-}
-
-int TextDisplay::_putc(int value) {
- if(value == '\n') {
- _column = 0;
- _row++;
- if(_row >= rows()) {
- _row = 0;
- }
- } else {
- character(_column, _row, value);
- _column++;
- if(_column >= columns()) {
- _column = 0;
- _row++;
- if(_row >= rows()) {
- _row = 0;
- }
- }
- }
- return value;
-}
-
-// crude cls implementation, should generally be overwritten in derived class
-void TextDisplay::cls() {
- locate(0, 0);
- for(int i=0; i<columns()*rows(); i++) {
- _putc(' ');
- }
-}
-
-void TextDisplay::set_font(const unsigned char * f) {
- font = f;
- if(font==NULL) {
- externalfont = 0; // set display.font
- locate(0, 0);
- }
- else{
- externalfont = 1;
- locate(0, 0);
- }
-}
-
-void TextDisplay::locate(int column, int row) {
- _column = column;
- _row = row;
- char_x = column;
- char_y = row;
-}
-
-int TextDisplay::_getc() {
- return -1;
-}
-
-void TextDisplay::foreground(uint16_t colour) {
- _foreground = colour;
-}
-
-void TextDisplay::background(uint16_t colour) {
- _background = colour;
-}
-
-void TextDisplay::printf(const char* format, ...) {
- char buffer[MAX_PRINTF_CHARS + 1] = { 0 };
- uint32_t iterator = 0;
- va_list args;
- va_start(args, format);
- vsprintf(buffer, format, args);
- va_end(args);
-
- while((buffer[iterator] != 0) && (iterator < MAX_PRINTF_CHARS)) {
- _putc(buffer[iterator++]);
- }
-}

Health Sensor Board Embedded Heart Rate Algorithm Sensor Hub + ECG, Wearables Ev Kit MAXREFDES101#