initial check in
This commit is contained in:
parent
088c7118e0
commit
85d29b6473
13 changed files with 1148 additions and 0 deletions
48
examples/osd/dual-rgbw-actor/t4-servo-hardware.h
Normal file
48
examples/osd/dual-rgbw-actor/t4-servo-hardware.h
Normal file
|
@ -0,0 +1,48 @@
|
|||
// Copyright (C) 2014 Marcus Priesch, All rights reserved
|
||||
// In Prandnern 31, A--2122 Riedenthal, Austria. office@priesch.co.at
|
||||
// ****************************************************************************
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation; either version 2 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program 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 General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
// ****************************************************************************
|
||||
//
|
||||
//++
|
||||
// Name
|
||||
// t4-servo-hardware
|
||||
//
|
||||
// Purpose
|
||||
// configuration for t4-servo
|
||||
//
|
||||
// Revision Dates
|
||||
// 10-Mar-2014 (MPR) Creation
|
||||
// ««revision-date»»···
|
||||
//--
|
||||
|
||||
#include <avr/io.h>
|
||||
|
||||
#ifndef __T4_SERVO_HARDWARE_H__
|
||||
#define __T4_SERVO_HARDWARE_H__ 1
|
||||
|
||||
static servo_channel_type servo_channels [] =
|
||||
{ /* PORTx, DDRx, PINxn, PWM */
|
||||
{0x05, 0x04, PINB7, 0} // r
|
||||
, {0x0E, 0x0D, PINE2, 0} // g
|
||||
, {0x05, 0x04, PINB6, 0} // b
|
||||
, {0x05, 0x04, PINB5, 0} // w
|
||||
, {0x05, 0x04, PINB1, 0} // r
|
||||
, {0x05, 0x04, PINB0, 0} // g
|
||||
, {0x05, 0x04, PINB2, 0} // b
|
||||
, {0x05, 0x04, PINB3, 0} // w
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue