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/12 08:14:59 AM CET
I want to make a counter using 9999 hc595 Thank you in advance for your help with mikroC but could not figure out the logic hc595
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!
posted on 2015/03/07 05:21:45 AM CET
i want to simple 50hz code for atmega 16
without library alredy i have code but it not wirking
void main()
{
//Configure TIMER1
TCCR1A|=(1<<COM1A1)|(1<<COM1B1)|(1<<WGM11); //NON Inverted PWM
TCCR1B|=(1<<WGM13)|(1<<WGM12)|(1<<CS11)|(1<<CS10); //PRESCALER=64 MODE 14(FAST PWM)
ICR1=4999; //fPWM=50Hz (Period = 20ms Standard).
DDRD|=(1<<PD4)|(1<<PD5); //PWM Pins as Out
while(1)
{
OCR1A=97; //0 degree
Wait();
}
posted on 2015/03/04 01:40:33 PM CET
posted on 2015/03/04 01:39:28 PM CET