1
0
mirror of synced 2024-11-25 10:44:24 +01:00
avr_demo/4x4_matrix_part_1/digital_slow.h

24 lines
505 B
C
Raw Normal View History

2011-11-03 20:24:12 +01:00
#ifndef DIGITAL_SLOW_H
#define DIGITAL_SLOW_H
#include <avr/pgmspace.h>
#define HIGH 0x1
#define LOW 0x0
#define INPUT 0x0
#define OUTPUT 0x1
#define PB 2
#define PC 3
#define PD 4
extern const uint8_t PROGMEM portmask_at_pin[];
extern const uint8_t PROGMEM port_at_pin[];
extern const uint16_t PROGMEM output_reg_at_port[];
extern const uint16_t PROGMEM direction_reg_at_port[];
void pin_mode(uint8_t pin, uint8_t mode);
void digital_write(uint8_t pin, uint8_t value);
#endif /* DIGITAL_SLOW_H */