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]
Rating:
Author: Israel Redondo
Last Updated: 2020-07-22
Package Version: 1.0.0.0
Category: Audio & Speech
Downloaded: 251 times
Not followed.
License: De libre uso y Distribución
Código parar modulo MP3 DFplayer mini, Con archivo de ejemplo
Do you want to subscribe in order to receive notifications regarding "DFplayer mini" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "DFplayer mini" changes.
Do you want to report abuse regarding "DFplayer mini".
DOWNLOAD LINK | RELATED COMPILER | CONTAINS |
---|---|---|
1595368865_dfplayer_mini_mikroc_pic.rar [200.85KB] | mikroC PRO for PIC |
|
/*------------------------------------------------------------------------------
PROGRAMA DE EJEMPLO CON EL PIC16F628A CONFIGURADO CON OSCILADOR INTERNO A 4MHZ
UTILIZANDO LA LIBRERIA "DFplayer.h" LA CUAL TIENE COMO UNICA FUNCION
DFplayer(parametro, parametro);
------------------------------------------------------------------------------*/
#include "DFplayer.h"
void main(){
OSCF_Bit=1;/*OSCF: INTOSC Oscillator Frequency bit
1 = 4 MHz typical---0 = 48 kHz typical*/
CMCON = 7; //apaga comparadores
TRISB = 0b00000010;
portb = 0;
TRISA = 0b00000000;
porta = 0;
UART1_Init(9600);
Delay_ms(2000);/*para esperar que encienda el amplificador y otros*/
DFplayer(track, 1);/*Define la pista (1) para reproducir en DFplayer*/
delay_ms(100);
DFplayer(volume,30);/*Establece el volumen en 30*/
delay_ms(100);
DFplayer( play ); /*reproduce*/
delay_ms(100);
DFplayer(repeat_track, 1); /*Reproduce repetidamente la pista */
while(1){
}
}
Lisencia libre