Function prototypes and definitions for the egoShield library. More...
#include "uStepper.h"
#include "U8g2lib.h"
#include "SPI.h"
#include "Arduino.h"
#include "SoftwareSerial.h"
Go to the source code of this file.
Classes | |
struct | buttons |
struct to hold information required to debounce button. More... | |
class | egoShield |
Watchdog timer interrupt handler, for examining the buttons periodically. More... | |
Macros | |
#define | FWBT A3 |
#define | PLBT A1 |
#define | RECBT A2 |
#define | BWBT A0 |
#define | CNT 50 |
#define | OPTO 3 |
#define | FULL 1 |
#define | HALF 2 |
#define | QUARTER 4 |
#define | EIGHT 8 |
#define | SIXTEEN 16 |
#define | en_width 11 |
#define | en_height 9 |
#define | tt_width 10 |
#define | tt_height 10 |
#define | play_width 6 |
#define | play_height 11 |
#define | loop_width 11 |
#define | loop_height 10 |
#define | logo_width 90 |
#define | logo_height 16 |
#define | DEPRESSED 0 /** Definition of DEPRESSED button state */ |
#define | PRESSED 1 /** Definition of PRESSED button state */ |
#define | HOLD 2 /** Definition of HOLD button state */ |
#define | HOLDTIME 75 /** Number of PRESSED samples before the button should be considered HOLD */ |
#define | HOLDTICK 5 /** Number of HOLD samples before a new button press should be issued */ |
#define | RESETWDT asm volatile("WDR \n\t") |
Functions | |
void | WDT_vect (void) __attribute__((signal |
Function prototypes and definitions for the egoShield library.
This file contains class and function prototypes for the library, as well as necessary constants and global variables.
Definition in file egoShieldTeach.h.
#define BWBT A0 |
Backward button pin definition
Definition at line 121 of file egoShieldTeach.h.
#define CNT 50 |
Max record count definition
Definition at line 123 of file egoShieldTeach.h.
#define EIGHT 8 |
Eighth step definition
Definition at line 134 of file egoShieldTeach.h.
#define FULL 1 |
Full step definition
Definition at line 128 of file egoShieldTeach.h.
#define FWBT A3 |
Forward button pin definition
Definition at line 115 of file egoShieldTeach.h.
#define HALF 2 |
Half step definition
Definition at line 130 of file egoShieldTeach.h.
#define OPTO 3 |
Optocoupler pin definition
Definition at line 125 of file egoShieldTeach.h.
#define PLBT A1 |
Play button pin definition
Definition at line 117 of file egoShieldTeach.h.
#define QUARTER 4 |
Quarter step definition
Definition at line 132 of file egoShieldTeach.h.
#define RECBT A2 |
Record button pin definition
Definition at line 119 of file egoShieldTeach.h.
#define RESETWDT asm volatile("WDR \n\t") |
Macro for resetting watchdog timer
Definition at line 206 of file egoShieldTeach.h.
#define SIXTEEN 16 |
Sixteenth step definition
Definition at line 136 of file egoShieldTeach.h.
void WDT_vect | ( | void | ) |
Periodic interrupt to sample buttons
Definition at line 69 of file egoShieldTeach.cpp.
|
static |
Definition at line 143 of file egoShieldTeach.h.
|
static |
Definition at line 140 of file egoShieldTeach.h.
|
static |
Definition at line 168 of file egoShieldTeach.h.
|
static |
Definition at line 163 of file egoShieldTeach.h.
|
static |
Definition at line 159 of file egoShieldTeach.h.
|
static |
Definition at line 154 of file egoShieldTeach.h.
|
static |
Definition at line 148 of file egoShieldTeach.h.
|
static |
Definition at line 151 of file egoShieldTeach.h.