mirror of
https://github.com/k3ng/k3ng_rotator_controller.git
synced 2025-01-02 19:36:47 +00:00
2018.10.19.03
Added FEATURE_FABO_LCD_PCF8574_DISPLAY
This commit is contained in:
parent
eccdaebd16
commit
05ffde5537
@ -390,6 +390,11 @@
|
|||||||
2018.10.19.02
|
2018.10.19.02
|
||||||
Added Hygain DCU-1 protocol emulation - FEATURE_DCU_1_EMULATION
|
Added Hygain DCU-1 protocol emulation - FEATURE_DCU_1_EMULATION
|
||||||
|
|
||||||
|
2018.10.19.03
|
||||||
|
Added FEATURE_FABO_LCD_PCF8574_DISPLAY
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
All library files should be placed in directories likes \sketchbook\libraries\library1\ , \sketchbook\libraries\library2\ , etc.
|
All library files should be placed in directories likes \sketchbook\libraries\library1\ , \sketchbook\libraries\library2\ , etc.
|
||||||
Anything rotator_*.* should be in the ino directory!
|
Anything rotator_*.* should be in the ino directory!
|
||||||
@ -400,7 +405,7 @@
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define CODE_VERSION "2018.10.19.02"
|
#define CODE_VERSION "2018.10.19.03"
|
||||||
|
|
||||||
#include <avr/pgmspace.h>
|
#include <avr/pgmspace.h>
|
||||||
#include <EEPROM.h>
|
#include <EEPROM.h>
|
||||||
@ -450,6 +455,11 @@
|
|||||||
#include <ST7036.h>
|
#include <ST7036.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(FEATURE_FABO_LCD_PCF8574_DISPLAY)
|
||||||
|
#include <FaBoLCD_PCF8574.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef FEATURE_LCD_DISPLAY
|
#ifdef FEATURE_LCD_DISPLAY
|
||||||
#include "rotator_k3ngdisplay.h"
|
#include "rotator_k3ngdisplay.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -76,11 +76,11 @@
|
|||||||
#define FEATURE_ONE_DECIMAL_PLACE_HEADINGS
|
#define FEATURE_ONE_DECIMAL_PLACE_HEADINGS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(FEATURE_4_BIT_LCD_DISPLAY) || defined(FEATURE_I2C_LCD) || defined(FEATURE_ADAFRUIT_I2C_LCD) || defined(FEATURE_YOURDUINO_I2C_LCD) || defined(FEATURE_RFROBOT_I2C_DISPLAY) || defined(FEATURE_YWROBOT_I2C_DISPLAY) || defined(FEATURE_SAINSMART_I2C_LCD) || defined(FEATURE_MIDAS_I2C_DISPLAY)
|
#if defined(FEATURE_4_BIT_LCD_DISPLAY) || defined(FEATURE_I2C_LCD) || defined(FEATURE_ADAFRUIT_I2C_LCD) || defined(FEATURE_YOURDUINO_I2C_LCD) || defined(FEATURE_RFROBOT_I2C_DISPLAY) || defined(FEATURE_YWROBOT_I2C_DISPLAY) || defined(FEATURE_SAINSMART_I2C_LCD) || defined(FEATURE_MIDAS_I2C_DISPLAY) || defined(FEATURE_FABO_LCD_PCF8574_DISPLAY)
|
||||||
#define FEATURE_LCD_DISPLAY
|
#define FEATURE_LCD_DISPLAY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(FEATURE_ADAFRUIT_I2C_LCD) || defined(FEATURE_YOURDUINO_I2C_LCD) || defined(FEATURE_RFROBOT_I2C_DISPLAY) || defined(FEATURE_YWROBOT_I2C_DISPLAY) || defined(FEATURE_SAINSMART_I2C_LCD) || defined(FEATURE_MIDAS_I2C_DISPLAY)
|
#if defined(FEATURE_ADAFRUIT_I2C_LCD) || defined(FEATURE_YOURDUINO_I2C_LCD) || defined(FEATURE_RFROBOT_I2C_DISPLAY) || defined(FEATURE_YWROBOT_I2C_DISPLAY) || defined(FEATURE_SAINSMART_I2C_LCD) || defined(FEATURE_MIDAS_I2C_DISPLAY) || defined(FEATURE_FABO_LCD_PCF8574_DISPLAY)
|
||||||
#define FEATURE_I2C_LCD
|
#define FEATURE_I2C_LCD
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -78,6 +78,7 @@
|
|||||||
// #define FEATURE_YWROBOT_I2C_DISPLAY
|
// #define FEATURE_YWROBOT_I2C_DISPLAY
|
||||||
// #define FEATURE_SAINSMART_I2C_LCD
|
// #define FEATURE_SAINSMART_I2C_LCD
|
||||||
// #define FEATURE_MIDAS_I2C_DISPLAY
|
// #define FEATURE_MIDAS_I2C_DISPLAY
|
||||||
|
// #define FEATURE_FABO_LCD_PCF8574_DISPLAY
|
||||||
|
|
||||||
// #define FEATURE_ANALOG_OUTPUT_PINS
|
// #define FEATURE_ANALOG_OUTPUT_PINS
|
||||||
|
|
||||||
|
@ -76,6 +76,7 @@
|
|||||||
// #define FEATURE_YWROBOT_I2C_DISPLAY
|
// #define FEATURE_YWROBOT_I2C_DISPLAY
|
||||||
// #define FEATURE_SAINSMART_I2C_LCD
|
// #define FEATURE_SAINSMART_I2C_LCD
|
||||||
// #define FEATURE_MIDAS_I2C_DISPLAY
|
// #define FEATURE_MIDAS_I2C_DISPLAY
|
||||||
|
// #define FEATURE_FABO_LCD_PCF8574_DISPLAY
|
||||||
|
|
||||||
//#define FEATURE_SUN_PUSHBUTTON_AZ_EL_CALIBRATION
|
//#define FEATURE_SUN_PUSHBUTTON_AZ_EL_CALIBRATION
|
||||||
//#define FEATURE_MOON_PUSHBUTTON_AZ_EL_CALIBRATION
|
//#define FEATURE_MOON_PUSHBUTTON_AZ_EL_CALIBRATION
|
||||||
|
@ -83,6 +83,7 @@
|
|||||||
// #define FEATURE_YWROBOT_I2C_DISPLAY
|
// #define FEATURE_YWROBOT_I2C_DISPLAY
|
||||||
// #define FEATURE_SAINSMART_I2C_LCD
|
// #define FEATURE_SAINSMART_I2C_LCD
|
||||||
// #define FEATURE_MIDAS_I2C_DISPLAY
|
// #define FEATURE_MIDAS_I2C_DISPLAY
|
||||||
|
// #define FEATURE_FABO_LCD_PCF8574_DISPLAY
|
||||||
|
|
||||||
// #define FEATURE_ANALOG_OUTPUT_PINS
|
// #define FEATURE_ANALOG_OUTPUT_PINS
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef K3NG_DISPLAY_H
|
#ifndef K3NG_DISPLAY_H
|
||||||
#define K3NG_DISPLAY_H
|
#define K3NG_DISPLAY_H
|
||||||
|
|
||||||
// K3NG_DISPLAY_LIBRARY_VERSION "2018.10.17.01"
|
// K3NG_DISPLAY_LIBRARY_VERSION "2018.10.19.01"
|
||||||
|
|
||||||
|
|
||||||
#if defined(ARDUINO) && ARDUINO >= 100
|
#if defined(ARDUINO) && ARDUINO >= 100
|
||||||
@ -39,6 +39,9 @@
|
|||||||
#include <LCD_C0220BiZ.h>
|
#include <LCD_C0220BiZ.h>
|
||||||
#include <ST7036.h>
|
#include <ST7036.h>
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(FEATURE_FABO_LCD_PCF8574_DISPLAY)
|
||||||
|
#include <FaBoLCD_PCF8574.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if defined(FEATURE_YOURDUINO_I2C_LCD)
|
#if defined(FEATURE_YOURDUINO_I2C_LCD)
|
||||||
@ -79,6 +82,11 @@
|
|||||||
ST7036 lcd = ST7036 ( 2, 16, 120 );
|
ST7036 lcd = ST7036 ( 2, 16, 120 );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(FEATURE_FABO_LCD_PCF8574_DISPLAY)
|
||||||
|
FaBoLCD_PCF8574 lcd;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
int display_columns = 0;
|
int display_columns = 0;
|
||||||
uint8_t display_rows = 0;
|
uint8_t display_rows = 0;
|
||||||
char screen_buffer_live[MAX_SCREEN_BUFFER_COLUMNS*MAX_SCREEN_BUFFER_ROWS];
|
char screen_buffer_live[MAX_SCREEN_BUFFER_COLUMNS*MAX_SCREEN_BUFFER_ROWS];
|
||||||
@ -127,6 +135,10 @@ void K3NGdisplay::initialize(){
|
|||||||
lcd.init();
|
lcd.init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(FEATURE_FABO_LCD_PCF8574_DISPLAY)
|
||||||
|
lcd.begin(display_columns, display_rows);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef FEATURE_YOURDUINO_I2C_LCD
|
#ifdef FEATURE_YOURDUINO_I2C_LCD
|
||||||
lcd.setBacklightPin(BACKLIGHT_PIN, POSITIVE);
|
lcd.setBacklightPin(BACKLIGHT_PIN, POSITIVE);
|
||||||
lcd.setBacklight(I2C_LCD_COLOR);
|
lcd.setBacklight(I2C_LCD_COLOR);
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
// #define FEATURE_SAINSMART_I2C_LCD
|
// #define FEATURE_SAINSMART_I2C_LCD
|
||||||
// #define FEATURE_ADAFRUIT_BUTTONS
|
// #define FEATURE_ADAFRUIT_BUTTONS
|
||||||
// #define FEATURE_MIDAS_I2C_DISPLAY
|
// #define FEATURE_MIDAS_I2C_DISPLAY
|
||||||
|
// #define FEATURE_FABO_LCD_PCF8574_DISPLAY
|
||||||
|
|
||||||
// #define OPTION_RFROBOT_I2C_DISPLAY_BACKLIGHT_OFF
|
// #define OPTION_RFROBOT_I2C_DISPLAY_BACKLIGHT_OFF
|
||||||
|
|
||||||
@ -65,7 +66,7 @@
|
|||||||
#include "rotator.h"
|
#include "rotator.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define K3NG_DISPLAY_LIBRARY_VERSION "2018.10.17.01"
|
#define K3NG_DISPLAY_LIBRARY_VERSION "2018.10.19.01"
|
||||||
#define MAX_SCREEN_BUFFER_COLUMNS 20
|
#define MAX_SCREEN_BUFFER_COLUMNS 20
|
||||||
#define MAX_SCREEN_BUFFER_ROWS 4
|
#define MAX_SCREEN_BUFFER_ROWS 4
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user