project 2 pasted in to repo
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#ifndef DIGITAL_IN_H
|
||||
#define DIGITAL_IN_H
|
||||
#include <stdint.h>
|
||||
|
||||
struct Digital_in {
|
||||
uint8_t pin_mask;
|
||||
|
||||
Digital_in(uint8_t pin);
|
||||
|
||||
void init();
|
||||
bool is_hi();
|
||||
bool is_lo();
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user