 
                      
    We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
 
                                        
                  posted on 2015/03/09 01:26:38 AM CET
I would like to make available using the MAX7219 example with 7 segments
button and sound or watch would be very useful to learn
tried to put together the sound matriz8x8 but is catching all need some more examples of a conjugate function have a pic Easy v7, thank you!
*/
#define IMG_SIZE 20
#include "8X8 FONT.h"
#include "LED_Driver.h"
// Serial 7-seg Display connections
sbit sfr Chip_Select1 at RE0_bit;
sbit sfr Chip_Select_Direction1 at TRISE0_bit;
sbit sfr Chip_Select2 at RA5_bit;
sbit sfr Chip_Select_Direction2 at TRISA5_bit;
// Serial 7-seg Display connections
char i;
const unsigned char intro[] =  "  mikroElektronika 8x8Rclick";       // Text to display
void main() {
  SPI1_Init();                    // Initialize SPI module
  max7219_init(1);                // initialize  max7219
  max7219_init(2);                // initialize  max7219
  
  slide_text_double(intro);       // Text slide animation
  while(1){
    for(i = 0 ; i < IMG_SIZE ; i++){               // Play graphical sequence  forward
      display_image_const(img1[i], 1);
      display_image_const(img2[i], 2);
      Delay_ms(120);
    }
    Delay_ms(600);
    for(i = IMG_SIZE-1 ; i > 0 ; i--){             // Play graphical sequence  backward
      display_image_const(img1[IMG_SIZE-1-i], 1);  // Reverse and play forward 8x8 R click in first mikroBUS socket
      display_image_const(img2[i] ,2);
      Delay_ms(120);
    }
  }
}
THIS TYPE
Hello !, Cool would like to see a change
message by the computer, a sound beep type like this:
void Melody() { // Plays the melody "Yellow house"
Tone1(); Tone2(); Tone3(); Tone3();
Tone1(); Tone2(); Tone3(); Tone3();
Tone1(); Tone2(); Tone3();
Tone1(); Tone2(); Tone3(); Tone3();
Tone1(); Tone2(); Tone3();
Tone3(); Tone3(); Tone2(); Tone2(); Tone1();
}
or type this:
UART1_Init(4800); // initialize UART1 module
Delay_ms(100);
while (1) {
if (UART_Data_Ready() == 1) { // if data is received 
UART_Read_Text(output, "OK", 10); // reads text until 'OK' is found
UART_Write_Text(output); // sends back text 
}
}
thank you!