MAXREFDES99 Demo  version: 0.0
 All Files Functions
maxrefdes99.cpp File Reference

Source file for maxrefdes99 demo. More...

#include "maxrefdes99.h"

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...
 

Detailed Description

Source file for maxrefdes99 demo.

Author
Justin Jordan
Version
0.0

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.

Function Documentation

void all_off ( Max7219 *  p_display)

turns all leds for whole display off

On Entry:

Parameters
[in]p_display- pointer to Max7219 object

On Exit:

Returns
none
void all_on ( Max7219 *  p_display)

turns all leds for whole display on

On Entry:

Parameters
[in]p_display- pointer to Max7219 object

On Exit:

Returns
none
void demo ( Max7219 *  p_display,
max7219_configuration_t  display_config,
bool  endless_loop 
)

demo loop for MAXREFDES99

On Entry:

Parameters
[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:

Returns
none
void endless_scroll_display ( Max7219 *  p_display,
uint32_t  scroll_right 
)

shift display in given direction forever

On Entry:

Parameters
[in]p_display- pointer to Max7219 object
[in]scroll_right- if true shift right, else shift left

On Exit:

Returns
none
void get_5x7_character ( char  c,
uint8_t *  char_buff 
)

gets character bitmap fom Flash memory

On Entry:

Parameters
[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:

Returns
none
void print_char ( Max7219 *  p_display,
uint8_t  position99,
char  c 
)

prints character to MAXREFDES99 at given position

On Entry:

Parameters
[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:

Returns
none
void print_string ( Max7219 *  p_display,
uint8_t  position99,
const char *  s 
)

prints given string to MAXREFDES99at given position

On Entry:

Parameters
[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:

Returns
none
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:

Parameters
[in]p_display- pointer to Max7219 object
[in]quad- see brief

On Exit:

Returns
none
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:

Parameters
[in]p_display- pointer to Max7219 object
[in]quad- see brief

On Exit:

Returns
none
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:

Parameters
[in]p_display- pointer to Max7219 object
[in]count- number of positions to shift
[in]ms_delay- delay between shifts

On Exit:

Returns
none
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:

Parameters
[in]p_display- pointer to Max7219 object
[in]count- number of positions to shift
[in]ms_delay- delay between shifts

On Exit:

Returns
none