COSA
An Object-Oriented Platform for Arduino Programming
Tone.cpp File Reference
#include "Cosa/Tone.hh"
#include "Cosa/Watchdog.hh"
Include dependency graph for Tone.cpp:

Go to the source code of this file.

Macros

#define PWM1   DDB1
 
#define PWM2   DDB2
 
#define DDR   DDRB
 
#define PORT   PORTB
 

Functions

 ISR (TIMER1_COMPA_vect)
 

Variables

const uint8_t Tone::s_map[] __PROGMEM
 

Detailed Description

Version
1.0

License

Copyright (C) 2014-2015, Mikael Patel (Cosa C++ port and extensions)

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

This file is part of the Arduino Che Cosa project.

Definition in file Tone.cpp.

Macro Definition Documentation

#define DDR   DDRB

Definition at line 50 of file Tone.cpp.

#define PORT   PORTB

Definition at line 51 of file Tone.cpp.

#define PWM1   DDB1

Definition at line 48 of file Tone.cpp.

#define PWM2   DDB2

Definition at line 49 of file Tone.cpp.

Function Documentation

ISR ( TIMER1_COMPA_vect  )

Definition at line 121 of file Tone.cpp.

Variable Documentation

const uint8_t Tone::s_map [] __PROGMEM
Initial value:
= {
200, 100, 67, 50, 40, 33, 29, 22, 11, 2
}

Definition at line 55 of file Tone.cpp.