Datasheet

SOUND LIBRARY
The mikroBasic PRO for AVR provides a Sound Library to supply users with routines
necessary for sound signalization in their applications. Sound generation needs
additional hardware, such as piezo-speaker (example of piezo-speaker interface is
given on the schematic at the bottom of this page).
External dependencies of Sound Library
Library Routines
- Sound_Init
- Sound_Play
357
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
The following variables
must be defined in all
projects using Sound
Library:
Description: Example :
dim Sound_Play_Pin as
sbit sfr external
Sound output pin.
dim Sound_Play_Pin as
sbit at PORTC.B3
dim
Sound_Play_Pin_Direct
ion as sbit sfr
external
Direction of the Sound out-
put pin.
dim
Sound_Play_Pin_Direct
ion as sbit at
DDRC.B3