Maxim Integrated
/
MAXREFDES99_demo
Demo for MAXREFDES99
Diff: maxrefdes99.h
- Revision:
- 0:6b0161c3e440
- Child:
- 1:06c0a61ca171
--- /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*/ +