智也 大野 / Mbed 2 deprecated HeptaAccel

Dependencies:   mbed PowerControl SDFileSystem

Fork of HeptaAccel by 智也 大野

Embed: (wiki syntax)

« Back to documentation index

HeptaVoice Class Reference

HeptaVoice Class Reference

HeptaVoice class. More...

#include <HeptaVoice.h>

Public Member Functions

 HeptaVoice (PinName sda, PinName scl, int addr=AQTK_I2C_ADDR)
 Create a AquesTalk pico LSI I2C interface.

Detailed Description

HeptaVoice class.

AquesTalk pico LSI I2C interface Example:

      #include "HeptaVoice.h"
      HeptaVoice talk(P0_10,P0_11); // I2C sda scl
      
      int main() {
          talk.Synthe("konnichiwa.");
          for(int n = 1; ; n++) {
              char buf[32];
              snprintf(buf, sizeof(buf), "<NUMK VAL=%d>.", n);
              talk.Synthe(buf);
          }
      } 

Definition at line 28 of file HeptaVoice.h.


Constructor & Destructor Documentation

HeptaVoice ( PinName  sda,
PinName  scl,
int  addr = AQTK_I2C_ADDR 
)

Create a AquesTalk pico LSI I2C interface.

Parameters:
sdaI2C data pin
sclI2C clock pin
addrI2C address

Definition at line 3 of file HeptaVoice.cpp.