File management and Completed Part 1

This commit is contained in:
Thorsteinngretar
2026-10-03 02:41:04 +00:00
parent 0b52148272
commit 6f3c388cef
37 changed files with 1458 additions and 0 deletions
@@ -0,0 +1,22 @@
#ifndef DIGITAL_IN_H
#define DIGITAL_IN_H
#include <stdint.h>
class Digital_in
{
public:
// pin is the PORTB bit number:
// PB0 = D8, PB1 = D9, ..., PB5 = D13
Digital_in(uint8_t pin);
void init();
bool is_hi() const;
bool is_lo() const;
private:
uint8_t pinMask;
};
#endif