-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGDisplay.h
36 lines (30 loc) · 934 Bytes
/
GDisplay.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef GDISPLAY_H
#define GDISPLAY_H
#include "Config.h"
#include <stdlib.h>
#if ARDUINO >= 100
#include <Arduino.h>
#else
#include <WProgram.h>
#include <wiring.h>
#endif
class GDisplay
{
public:
GDisplay(LiquidCrystal_I2C * lcd);
void displayMode (byte zFeedMode, byte zFeedAutoMode, int zFeedDir);
void displayDistance(float distance);
void displaySelectMode (byte zFeedAutoMode);
void displaySpindleSpeed(float _speedToShow);
void displayHandWheelFactor(float _handWheelFactor);
void displayAutoSpeed(float _autoSpeed);
void displaySyncSpeed(float _autoSyncSpeed);
void displayLeftEndStop(float _leftStop, boolean isEnabled);
void displayRightEndStop(float _rightStop, boolean isEnabled);
void displayMenuMark(int menuMode);
protected:
void displayNumber(float numberToDisplay, int cursorPos, int rowPos);
private:
LiquidCrystal_I2C * _lcd;
};
#endif // GDISPLAY_H