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
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.
Diff: maxrefdes99.h
- Revision:
- 0:6b0161c3e440
- Child:
- 1:06c0a61ca171
diff -r 000000000000 -r 6b0161c3e440 maxrefdes99.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/maxrefdes99.h Tue Jan 12 23:44:43 2016 +0000 @@ -0,0 +1,100 @@ +/******************************************************************//** +* @file maxrefdes99.h +* +* @author Justin Jordan +* +* @version 0.0 +* +* Started: 08JAN16 +* +* Updated: +* +* @brief Header file for maxrefdes99 demo +*********************************************************************** +* Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included +* in all copies or substantial portions of the Software. +* +* THE 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 MAXIM INTEGRATED 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. +* +* Except as contained in this notice, the name of Maxim Integrated +* Products, Inc. shall not be used except as stated in the Maxim Integrated +* Products, Inc. Branding Policy. +* +* The mere transfer of this software does not imply any licenses +* of trade secrets, proprietary technology, copyrights, patents, +* trademarks, maskwork rights, or any other form of intellectual +* property whatsoever. Maxim Integrated Products, Inc. retains all +* ownership rights. +**********************************************************************/ + + +#ifndef MAXREFDES99_H +#define MAXREFDES99_H + + +#include "mbed.h" +#include "max7219.h" + + +void get_5x7_character(char c, uint8_t *char_buff); + + +void print_char(Max7219 *p_display, uint8_t position, char c); + + +void print_string(Max7219 *p_display, uint8_t position, const char *s); + + +void shift_display_right(Max7219 *p_display, uint8_t count, uint8_t delay); + + +void shift_display_left(Max7219 *p_display, uint8_t count, uint8_t delay); + + +void quad_all_on(Max7219 *p_display, uint8_t quad); + + +void quad_all_off(Max7219 *p_display, uint8_t quad); + + +void all_on(Max7219 *p_display); + + +void all_off(Max7219 *p_display); + + +void demo(Max7219 *display, max7219_configuration_t display_config, bool endless_loop); + + +void endless_scroll_display(Max7219 *display, uint32_t scroll_right); + + +uint32_t print_menu(void); + + +uint32_t get_user_input(char *msg, uint32_t max_val); + + +char get_user_char(char *msg); + + +char * get_user_string(char *msg); + + +#endif /*MAXREFDES99_H*/ +