Factored to support configurable amount of pwm's, fixes

This commit is contained in:
Marcus Priesch 2014-03-12 12:34:23 +01:00 committed by harald
parent bf6f388691
commit 992e54fe25
8 changed files with 363 additions and 518 deletions

View file

@ -35,14 +35,14 @@
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
{0x05, 0x04, 1 << PINB7, 0} // r1
, {0x0E, 0x0D, 1 << PINE2, 0} // g1
, {0x05, 0x04, 1 << PINB6, 0} // b1
, {0x05, 0x04, 1 << PINB5, 0} // w1
, {0x05, 0x04, 1 << PINB1, 0} // r2
, {0x05, 0x04, 1 << PINB0, 0} // g2
, {0x05, 0x04, 1 << PINB2, 0} // b2
, {0x05, 0x04, 1 << PINB3, 0} // w2
};
#endif