![]() |
MAXREFDES99 Demo
version: 0.0
|
Header file for maxrefdes99 demo. More...
#include "max7219.h"Go to the source code of this file.
Functions | |
| void | get_5x7_character (char c, uint8_t *char_buff) |
| gets character bitmap fom Flash memory More... | |
| void | print_char (Max7219 *p_display, uint8_t position99, char c) |
| prints character to MAXREFDES99 at given position More... | |
| void | print_string (Max7219 *p_display, uint8_t position99, const char *s) |
| prints given string to MAXREFDES99at given position More... | |
| void | shift_display_right (Max7219 *p_display, uint8_t count, uint8_t ms_delay) |
| shifts display right 'count' positions with given delay between shifts More... | |
| void | shift_display_left (Max7219 *p_display, uint8_t count, uint8_t ms_delay) |
| shifts display left 'count' positions with given delay between shifts More... | |
| void | quad_all_on (Max7219 *p_display, uint8_t quad) |
| turns on all leds for given quadrant, with quad 1 being top left and quad 4 being bottom right More... | |
| void | quad_all_off (Max7219 *p_display, uint8_t quad) |
| turns off all leds for given quadrant, with quad 1 being top left and quad 4 being bottom right More... | |
| void | all_on (Max7219 *p_display) |
| turns all leds for whole display on More... | |
| void | all_off (Max7219 *p_display) |
| turns all leds for whole display off More... | |
| void | demo (Max7219 *p_display, max7219_configuration_t display_config, bool endless_loop) |
| demo loop for MAXREFDES99 More... | |
| void | endless_scroll_display (Max7219 *p_display, uint32_t scroll_right) |
| shift display in given direction forever More... | |
Header file for maxrefdes99 demo.
Started: 08JAN16
Updated:
24JAN16 - ported to Arduino
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.
| void all_off | ( | Max7219 * | p_display | ) |
turns all leds for whole display off
On Entry:
| [in] | p_display | - pointer to Max7219 object |
On Exit:
| void all_on | ( | Max7219 * | p_display | ) |
turns all leds for whole display on
On Entry:
| [in] | p_display | - pointer to Max7219 object |
On Exit:
| void demo | ( | Max7219 * | p_display, |
| max7219_configuration_t | display_config, | ||
| bool | endless_loop | ||
| ) |
demo loop for MAXREFDES99
On Entry:
| [in] | p_display | - pointer to Max7219 object |
| [in] | display_config | - structure holding configuration data |
| [in] | endless_loop | - if true run demo in endless loop |
On Exit:
| void endless_scroll_display | ( | Max7219 * | p_display, |
| uint32_t | scroll_right | ||
| ) |
shift display in given direction forever
On Entry:
| [in] | p_display | - pointer to Max7219 object |
| [in] | scroll_right | - if true shift right, else shift left |
On Exit:
| void get_5x7_character | ( | char | c, |
| uint8_t * | char_buff | ||
| ) |
gets character bitmap fom Flash memory
On Entry:
| [in] | c | - character to get bitmap for |
| [in] | char_buff | - pointer to buffer to store bitmap in must be at least 6 bytes |
On Exit:
| void print_char | ( | Max7219 * | p_display, |
| uint8_t | position99, | ||
| char | c | ||
| ) |
prints character to MAXREFDES99 at given position
On Entry:
| [in] | p_display | - pointer to Max7219 object |
| [in] | position99 | - position to print char to posiion 1 is top left column, position 32 is bottom right column |
| [in] | c | - char to print |
On Exit:
| void print_string | ( | Max7219 * | p_display, |
| uint8_t | position99, | ||
| const char * | s | ||
| ) |
prints given string to MAXREFDES99at given position
On Entry:
| [in] | p_display | - pointer to Max7219 object |
| [in] | position99 | - position to print char to posiion 1 is top left column, position 32 is bottom right column |
| [in] | s | - pointer to string to print |
On Exit:
| void quad_all_off | ( | Max7219 * | p_display, |
| uint8_t | quad | ||
| ) |
turns off all leds for given quadrant, with quad 1 being top left and quad 4 being bottom right
On Entry:
| [in] | p_display | - pointer to Max7219 object |
| [in] | quad | - see brief |
On Exit:
| void quad_all_on | ( | Max7219 * | p_display, |
| uint8_t | quad | ||
| ) |
turns on all leds for given quadrant, with quad 1 being top left and quad 4 being bottom right
On Entry:
| [in] | p_display | - pointer to Max7219 object |
| [in] | quad | - see brief |
On Exit:
| void shift_display_left | ( | Max7219 * | p_display, |
| uint8_t | count, | ||
| uint8_t | ms_delay | ||
| ) |
shifts display left 'count' positions with given delay between shifts
On Entry:
| [in] | p_display | - pointer to Max7219 object |
| [in] | count | - number of positions to shift |
| [in] | ms_delay | - delay between shifts |
On Exit:
| void shift_display_right | ( | Max7219 * | p_display, |
| uint8_t | count, | ||
| uint8_t | ms_delay | ||
| ) |
shifts display right 'count' positions with given delay between shifts
On Entry:
| [in] | p_display | - pointer to Max7219 object |
| [in] | count | - number of positions to shift |
| [in] | ms_delay | - delay between shifts |
On Exit: