トランジスタ技術2015年6月号mbedラジコン・カーp182 リスト3 音声合成LSIのmbedメイン・プログラム

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

ATP3012 Class Reference

ATP3012 Class Reference

ATP3012 class. More...

#include <ATP3012.h>

Public Member Functions

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

Detailed Description

ATP3012 class.

AquesTalk pico LSI I2C interface Example:

      #include "ATP3012.h"
      ATP3012 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 27 of file ATP3012.h.


Constructor & Destructor Documentation

ATP3012 ( 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 ATP3012.cpp.