PS_Fgen_FW  4da88f4073c1cc65ea45c3a652a2751e495e50db
Firmware for an Power Supply and Function Generator build from an ATX power supply
Loading...
Searching...
No Matches
Encoder.h
Go to the documentation of this file.
1
8
9#ifndef ENCODER_H_
10#define ENCODER_H_
11
12#include <avr/interrupt.h>
13#include "../Pins/Pins.h"
14
18void Encoder_Init();
19
26{
27 return digitalRead(PIN_NUMBER_ENC_PB) == LOW;
28}
29
30#endif /* ENCODER_H_ */
bool Encoder_IsButtonPressed()
Check if the encoder button is pressed.
Definition Encoder.h:25
void Encoder_Init()
Initialize all registers for the pin interrupts used for encoder handling.
Definition Encoder.cpp:24
Containing defines and functions for basic pin initialization and handling.
#define PIN_NUMBER_ENC_PB
Arduino pin number for the Encoder push button line (PORTD4)
Definition Pins.h:36