#ifndef _OBP60EXTENSIONPORT_H #define _OBP60EXTENSIONPORT_H #include #include "OBP60Hardware.h" #include #include // 4.2" Waveshare S/W 300 x 400 pixel #include // GxEPD lip for SPI display communikation #include // GxEPD lip for SPI // Extension port void MCP23017Init(); // E-Ink display extern GxEPD_Class display; // E-Ink display functions // Fonts declarations for display (#inclues see OBP60Extensions.cpp) extern const GFXfont Ubuntu_Bold8pt7b; extern const GFXfont Ubuntu_Bold12pt7b; extern const GFXfont Ubuntu_Bold16pt7b; extern const GFXfont Ubuntu_Bold20pt7b; extern const GFXfont Ubuntu_Bold32pt7b; extern const GFXfont DSEG7Classic_BoldItalic16pt7b; extern const GFXfont DSEG7Classic_BoldItalic20pt7b; extern const GFXfont DSEG7Classic_BoldItalic30pt7b; extern const GFXfont DSEG7Classic_BoldItalic42pt7b; extern const GFXfont DSEG7Classic_BoldItalic60pt7b; // Gloabl functions void setPortPin(uint pin, bool value); // Set port pin for extension port void togglePortPin(uint pin); // Toggle extension port pin void blinkingFlashLED(); // Blinking function for LED on extension port void setBlinkingLED(bool on); // Set blinking LED active void buzzer(uint frequency, uint duration); // Buzzer function void setBuzzerPower(uint power); // Set buzzer power void displayTrendHigh(int16_t x, int16_t y, uint16_t size, uint16_t color); void displayTrendLow(int16_t x, int16_t y, uint16_t size, uint16_t color); void displayHeader(CommonData &commonData, GwApi::BoatValue *date, GwApi::BoatValue *time); // Draw display header #endif