This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
AVR-Stuff/UltraSonic/dist/Pin.h

20 lines
225 B
C
Raw Normal View History

#pragma once
#include <avr/io.h>
class Pin
{
private:
volatile uint8_t *m_port;
uint8_t m_pin;
public:
Pin(volatile uint8_t *port, uint8_t pin);
void pulse();
void set(bool value);
void toggle();
void blink();
};