AquesTalk pico LSI I2C interface

Dependents:   CanSat-C

Embed: (wiki syntax)

« Back to documentation index

ATP3011 Class Reference

ATP3011 Class Reference

ATP3011 class. More...

#include <ATP3011.h>

Public Member Functions

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

Detailed Description

ATP3011 class.

AquesTalk pico LSI I2C interface Example:

      #include "ATP3011.h"
      ATP3011 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 ATP3011.h.


Constructor & Destructor Documentation

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