A program to measure the temperature using the Max6675 board. The temperature is shown on 8x8 Max7219 matrix display and it is saved on SD as well.

Dependencies:   MAX7219 SDFileSystem mbed

Fork of MAXREFDES99_demo by Maxim Integrated

The program measures the temperature using the Max6675 board designed for Arduino. The temperature is shown on Max7219 8x8 matrix display (designed for Arduino as well) as text marque from right to left. The fonf size is 5x7 so the last row is used to show some info:

- All leds off: Normal temperature measuring - Leds shifting: Saving on SD card - Leds blinking: SD card missing or damaged

The Blue "user button" is used to save measured temperature on SD card. First click start saving, the second stop the process. Together the temperature is saved also the time. The time is reset when the process start. Connecting the USB to PC it's possible to see instant temperature and all saved data on SD.

Committer:
j3
Date:
Tue Jan 12 23:44:43 2016 +0000
Revision:
0:6b0161c3e440
Child:
1:06c0a61ca171
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
j3 0:6b0161c3e440 1 /******************************************************************//**
j3 0:6b0161c3e440 2 * @file maxrefdes99.h
j3 0:6b0161c3e440 3 *
j3 0:6b0161c3e440 4 * @author Justin Jordan
j3 0:6b0161c3e440 5 *
j3 0:6b0161c3e440 6 * @version 0.0
j3 0:6b0161c3e440 7 *
j3 0:6b0161c3e440 8 * Started: 08JAN16
j3 0:6b0161c3e440 9 *
j3 0:6b0161c3e440 10 * Updated:
j3 0:6b0161c3e440 11 *
j3 0:6b0161c3e440 12 * @brief Header file for maxrefdes99 demo
j3 0:6b0161c3e440 13 ***********************************************************************
j3 0:6b0161c3e440 14 * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved.
j3 0:6b0161c3e440 15 *
j3 0:6b0161c3e440 16 * Permission is hereby granted, free of charge, to any person obtaining a
j3 0:6b0161c3e440 17 * copy of this software and associated documentation files (the "Software"),
j3 0:6b0161c3e440 18 * to deal in the Software without restriction, including without limitation
j3 0:6b0161c3e440 19 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
j3 0:6b0161c3e440 20 * and/or sell copies of the Software, and to permit persons to whom the
j3 0:6b0161c3e440 21 * Software is furnished to do so, subject to the following conditions:
j3 0:6b0161c3e440 22 *
j3 0:6b0161c3e440 23 * The above copyright notice and this permission notice shall be included
j3 0:6b0161c3e440 24 * in all copies or substantial portions of the Software.
j3 0:6b0161c3e440 25 *
j3 0:6b0161c3e440 26 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
j3 0:6b0161c3e440 27 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
j3 0:6b0161c3e440 28 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
j3 0:6b0161c3e440 29 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
j3 0:6b0161c3e440 30 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
j3 0:6b0161c3e440 31 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
j3 0:6b0161c3e440 32 * OTHER DEALINGS IN THE SOFTWARE.
j3 0:6b0161c3e440 33 *
j3 0:6b0161c3e440 34 * Except as contained in this notice, the name of Maxim Integrated
j3 0:6b0161c3e440 35 * Products, Inc. shall not be used except as stated in the Maxim Integrated
j3 0:6b0161c3e440 36 * Products, Inc. Branding Policy.
j3 0:6b0161c3e440 37 *
j3 0:6b0161c3e440 38 * The mere transfer of this software does not imply any licenses
j3 0:6b0161c3e440 39 * of trade secrets, proprietary technology, copyrights, patents,
j3 0:6b0161c3e440 40 * trademarks, maskwork rights, or any other form of intellectual
j3 0:6b0161c3e440 41 * property whatsoever. Maxim Integrated Products, Inc. retains all
j3 0:6b0161c3e440 42 * ownership rights.
j3 0:6b0161c3e440 43 **********************************************************************/
j3 0:6b0161c3e440 44
j3 0:6b0161c3e440 45
j3 0:6b0161c3e440 46 #ifndef MAXREFDES99_H
j3 0:6b0161c3e440 47 #define MAXREFDES99_H
j3 0:6b0161c3e440 48
j3 0:6b0161c3e440 49
j3 0:6b0161c3e440 50 #include "mbed.h"
j3 0:6b0161c3e440 51 #include "max7219.h"
j3 0:6b0161c3e440 52
j3 0:6b0161c3e440 53
j3 0:6b0161c3e440 54 void get_5x7_character(char c, uint8_t *char_buff);
j3 0:6b0161c3e440 55
j3 0:6b0161c3e440 56
j3 0:6b0161c3e440 57 void print_char(Max7219 *p_display, uint8_t position, char c);
j3 0:6b0161c3e440 58
j3 0:6b0161c3e440 59
j3 0:6b0161c3e440 60 void print_string(Max7219 *p_display, uint8_t position, const char *s);
j3 0:6b0161c3e440 61
j3 0:6b0161c3e440 62
j3 0:6b0161c3e440 63 void shift_display_right(Max7219 *p_display, uint8_t count, uint8_t delay);
j3 0:6b0161c3e440 64
j3 0:6b0161c3e440 65
j3 0:6b0161c3e440 66 void shift_display_left(Max7219 *p_display, uint8_t count, uint8_t delay);
j3 0:6b0161c3e440 67
j3 0:6b0161c3e440 68
j3 0:6b0161c3e440 69 void quad_all_on(Max7219 *p_display, uint8_t quad);
j3 0:6b0161c3e440 70
j3 0:6b0161c3e440 71
j3 0:6b0161c3e440 72 void quad_all_off(Max7219 *p_display, uint8_t quad);
j3 0:6b0161c3e440 73
j3 0:6b0161c3e440 74
j3 0:6b0161c3e440 75 void all_on(Max7219 *p_display);
j3 0:6b0161c3e440 76
j3 0:6b0161c3e440 77
j3 0:6b0161c3e440 78 void all_off(Max7219 *p_display);
j3 0:6b0161c3e440 79
j3 0:6b0161c3e440 80
j3 0:6b0161c3e440 81 void demo(Max7219 *display, max7219_configuration_t display_config, bool endless_loop);
j3 0:6b0161c3e440 82
j3 0:6b0161c3e440 83
j3 0:6b0161c3e440 84 void endless_scroll_display(Max7219 *display, uint32_t scroll_right);
j3 0:6b0161c3e440 85
j3 0:6b0161c3e440 86
j3 0:6b0161c3e440 87 uint32_t print_menu(void);
j3 0:6b0161c3e440 88
j3 0:6b0161c3e440 89
j3 0:6b0161c3e440 90 uint32_t get_user_input(char *msg, uint32_t max_val);
j3 0:6b0161c3e440 91
j3 0:6b0161c3e440 92
j3 0:6b0161c3e440 93 char get_user_char(char *msg);
j3 0:6b0161c3e440 94
j3 0:6b0161c3e440 95
j3 0:6b0161c3e440 96 char * get_user_string(char *msg);
j3 0:6b0161c3e440 97
j3 0:6b0161c3e440 98
j3 0:6b0161c3e440 99 #endif /*MAXREFDES99_H*/
j3 0:6b0161c3e440 100