ECE 4180 - Final Project Team / Mbed 2 deprecated WalkieTalkie

Dependencies:   mbed 4DGL-uLCD-SE mbed-rtos nRF24L01P

Embed: (wiki syntax)

« Back to documentation index

Speaker Class Reference

Speaker Class Reference

Speaker Class. More...

#include <Speaker.h>

Public Member Functions

 Speaker (PinName pin)
 Assign a pin to Speaker.
void rawWrite (float value)
 Write a value a pin to Speaker.
void write (uint8_t value)
void turnOff ()
 Writes 0 to the analogOut to completely turn off the speaker.

Detailed Description

Speaker Class.

Definition at line 7 of file Speaker.h.


Constructor & Destructor Documentation

Speaker ( PinName  pin )

Assign a pin to Speaker.

Parameters:
PinThe pin the Speaker will be assigned to

Definition at line 4 of file Speaker.cpp.


Member Function Documentation

void rawWrite ( float  value )

Write a value a pin to Speaker.

Parameters:
value

Definition at line 6 of file Speaker.cpp.

void turnOff (  )

Writes 0 to the analogOut to completely turn off the speaker.

Definition at line 16 of file Speaker.cpp.

void write ( uint8_t  value )
Parameters:
valueWrites a scaled uint8_t from RF transmission to the speaker

Definition at line 10 of file Speaker.cpp.