inverted direction line added

This commit is contained in:
Wolfgang Hottgenroth 2016-09-23 23:19:13 +02:00
parent e77c0c0351
commit d1841f8af5
2 changed files with 4 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

View File

@ -46,7 +46,7 @@ volatile uint8_t activeOffset = 0;
ISR(TIMER1_A0, TA1_ISR_Ovrfl) {
if (pulseWidthIdx == 0) {
P1OUT ^= BIT1;
P1OUT ^= (BIT1 | BIT0);
}
uint16_t pw = pulseWidths[pulseWidthIdx + activeOffset];
@ -72,8 +72,9 @@ ISR(TIMER1_A1, TA1_ISR_Comp) {
void inverterInit() {
P1OUT &= ~BIT1;
P1DIR |= BIT1;
P1OUT &= ~BIT0;
P1OUT |= BIT1;
P1DIR |= BIT0 | BIT1;
P2OUT &= ~BIT1;
P2DIR |= BIT1;