1
0
mirror of synced 2024-11-22 01:04:24 +01:00
avr_demo/4x4_matrix_part_1/digital_slow.h
2011-11-03 21:24:12 +02:00

24 lines
505 B
C

#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 */