Piezo Vibration Sensor demo

Dependencies:   PCA9622_LED8x8 mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers tone_table.h Source File

tone_table.h

00001 /**
00002  *  PWM tone table : cycle (us) of PWMed tone 
00003  *
00004  *  @author  Toyomasa WATARAI
00005  *  @version 1.0
00006  *  @date    25-July-2015
00007  *
00008  *
00009  */
00010 
00011 #ifndef TONE_TABLE_H
00012 #define TONE_TABLE_H
00013 
00014 const int tone_table_us[] = {
00015     0,    // No tone 0
00016     3820, // C    1
00017     3610, // C#   2
00018     3410, // D    3
00019     3210, // D#   4
00020     3030, // E    5
00021     2860, // F    6
00022     2700, // F#   7
00023     2550, // G    8
00024     2410, // G#   9
00025     2270, // A   10
00026     2150, // A#  11
00027     2020, // B   12
00028     1910  // C   13
00029 };
00030 
00031 #endif