Rev 1775 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
#ifndef _OUTPUT_H
#define _OUTPUT_H
#include <avr/io.h>
// This is for LEDs connected directly between +5V and the AVR port, without transistors.
// PORTbit = 0 --> LED on.
// To use the normal transistor set-up where 1 --> transistor conductive, reverse the
// ON and OFF statements.
#define J16_ON PORTC &= ~(1<<PORTC2)
#define J16_OFF PORTC |= (1<<PORTC2)
#define J16_TOGGLE PORTC ^= (1<<PORTC2)
#define J17_ON PORTC &= ~(1<<PORTC3)
#define J17_OFF PORTC |= (1<<PORTC3)
#define J17_TOGGLE PORTC ^= (1<<PORTC3)
void output_init(void);
void output_update(void);
#endif //_output_H