Git Product home page Git Product logo

ag-panel's Introduction

 █████╗   ██████╗         ██████╗   █████╗  ███╗   ██╗ ███████╗ ██╗     
██╔══██╗ ██╔════╝         ██╔══██╗ ██╔══██╗ ████╗  ██║ ██╔════╝ ██║     
███████║ ██║  ███╗ █████╗ ██████╔╝ ███████║ ██╔██╗ ██║ █████╗   ██║     
██╔══██║ ██║   ██║ ╚════╝ ██╔═══╝  ██╔══██║ ██║╚██╗██║ ██╔══╝   ██║     
██║  ██║ ╚██████╔╝        ██║      ██║  ██║ ██║ ╚████║ ███████╗ ███████╗
╚═╝  ╚═╝  ╚═════╝         ╚═╝      ╚═╝  ╚═╝ ╚═╝  ╚═══╝ ╚══════╝ ╚══════╝

Arduino Graphic Panel for lcdproc (ag-panel)

Welcome to the Arduino Graphic Panel for lcdproc (ag-panel) project! This is the next generation of lcdproc display panel, built on the versatile Arduino platform and similar hardware. If you're looking to create dynamic and customizable displays, this project is for you.

Project Evolution

This project is based on the earlier code of Arduino LCD over Serial Panel (alos-panel). However, we've taken it to the next level by fully rewriting the original C code in C++ for improved maintainability and expandability. While the documentation is still a work in progress, we're excited to share the project's potential with you.

Versatile Compatibility

The ag-panel project is designed to offer maximum compatibility and flexibility. Here's what it currently supports:

  • Protocols

    • ✓ los-panel (lcdproc) for direct HD44780 (supports only HD44780 displays)
    • ◻️ rawserial (lcdproc) (in progress)
    • ◻️ own protocol TBD (lcdproc) (to be implemented)
  • UART Serial

    • ✓ Hardware UART (up to 10 if supported)
    • ✓ USB Virtual UART (for SAMD, SAM, and STM32 platforms)
    • ✓ Software UART (for AVR, STM32, ESP8266, and ESP32 platforms)
    • ◻️ Bluetooth UART (to be implemented)
    • ◻️ LAN/WLAN TCP/IP socket (to be implemented)
    • ✓ No (null) UART
    • ✓ Buffered UART (addition to a regular UART)
  • LCD Display

    • ✓ HD44780 and clones in 4-bit and 8-bit modes
    • ✓ HD44780 with binary (on/off) backlight over I2C bus, based on 'I2C LCD backpack'
    • ✓ HD44780 with RGB binary (7 colors) backlight over I2C bus, like 'Adafruit RGB 16x2 LCD Shield'
    • ✓ AIP31068, HD44780-like with I2C and SPI interface
    • ◻️ U8g2 compatible displays (to be implemented)
  • LCD Backlight

    • ✓ Not controlled or controlled by the display itself
    • ✓ ON/OFF binary backlight
    • ✓ RGB binary (7 colors) backlight
    • ✓ PWM-controlled (monochrome brightness) backlight
    • ✓ RGB PWM-controlled (hue brightness) backlight
    • ✓ RGB PWM-controlled backlight attached over I2C bus with the help of PCA9633 LED controller
  • Keyboard / Input

    • ✓ No keyboard
    • ✓ Digital Matrix up to 4x4 (on analog pins)
    • ✓ Analog Arduino joystick as key strokes
    • ✓ Analog Keypad of 'LCD Keypad Shield'
    • ✓ Rotary Encoder
    • ✓ Analog Matrix 4x4 and 3x4 from RobotDyn
    • ✓ Digital Keypad or Digital Joystick over I2C bus, like 'Adafruit RGB 16x2 LCD Shield'
    • ✓ Capacitive Keypad attached over I2C based on MPR121 controller
    • ✓ Capacitive Keypad attached over I2C based on TTP229 controller
    • ✓ Single pin button
    • ✓ Joined keyboard for combining several supported keyboards/keypads together in a single unit
  • Development / Debugging

    • ✓ Hardware UART port for debugging output
    • ✓ Software UART port for debugging output
    • ✓ Hex String dump of UART output
    • ✓ Hex String dump of UART input
    • ✓ Unit Tests for main components

Please refer to config.h and config_adv.h for the most up-to-date information on supported configurations.

Current Status

While ag-panel is still a work in progress, it's already usable and offers a wide range of features for your display projects.

Project Structure

Platforms

The ag-panel code is written in C++ and utilizes the Arduino Framework. It's designed to compile and run on various embedded CPU platforms, including but not limited to:

  • ✓ Atmel (Microchip) AVR
  • ✓ Atmel (Microchip) SAMD and SAM
  • ◻️ Renesas RA (to be tested)
  • ◻️ Espressif ESP32 and ESP8266 (to be tested)
  • ✓ ST STM32
  • ◻️ Raspberry RP2040 (to be tested)
  • ◻️ RISC-V (planned)
  • ◻️ Logic Green AVR (planned)

Code Structure

The code is organized by subsystems, with classes for different functionalities residing in their respective folders:

ag-panel
├── src (main source code)
│   ├── keyboard (keyboard/input classes)
│   ├── lcd (LCD related classes)
│   │   ├── backlight (LCD backlight classes)
│   │   └── font (font classes)
│   ├── protocol (protocol logic)
│   └── uart (UART implementations)
├── ag-panel.ino (empty)
├── config_adv.h (advanced configuration)
└── config.h (basic configuration)

Project's native unit tests code is located in the separate folder:

test
├── test_lospanel (unit tests for los-panel protocol)
├── test_main (unit tests for main components)
├── test_rawserial (unit tests for rawserial protocol)
└── unity (Unity unit test framework)

Please note unit tests are using some of the code from the main source code folder directly, but unit test code is not included in the final build.

Keep in mind that the project is still a work in progress, so the code structure may change in the future.

Getting Started

To begin working with the ag-panel project, you'll need to fulfill certain dependencies:

Download Code

You can obtain the ag-panel project code using one of the following methods:

  • If you prefer using the Git version control system, run the following command: git clone https://github.com/red-scorp/ag-panel.git
  • Alternatively, you can download the entire master branch code as a single zip file.

Building the Project

You can compile the ag-panel project with any IDE that supports development for the Arduino SDK. We've tested it with the following IDEs:

  • To open the project in the Arduino IDE, simply open the INO file located at ag-panel/ag-panel.ino from the File menu. After this you can compile and flash the project to your target device using the built-in tools.
  • To use Visual Studio Code with the PlatformIO Extension, open the project folder containing the platformio.ini file from the File menu. To build the project in console mode, run the following command: pio run -e <environment>, where <environment> is the name of the target environment (e.g. uno or megaatmega2560).

To successfully compile the project, you may need to install the required libraries (see below).

To flash the compiled code to your target device, you can use built-in GUI tools of your IDE or use the following command: pio run -e <environment> -t upload, where <environment> is the name of the target environment (e.g. uno or megaatmega2560).

Please note, you might need to install additional drivers for your target device to be recognized by your computer.

Some target devices might need you to specify target upload port. In Arduino IDE you will need to select proper device in Tools menu. In PlatformIO you can do it by adding value upload_port to platformio.ini file or by using the following command: pio run -e <environment> -t upload --upload-port <port>, where <port> is the name of the target upload port (e.g. COM1 or /dev/ttyUSB0).

Please refer to the documentation of your IDE for more information on how to build and flash the project.

Required Libraries

To successfully compile the project, you may need to install the following libraries:

  • LiquidCrystal
  • LiquidCrystal_I2C
  • Adafruit MPR121
  • Adafruit RGB LCD Shield Library
  • TTP229
  • LiquidCrystal_AIP31068
  • SoftSPIB
  • pca9633
  • EspSoftwareSerial
  • ESP32 AnalogWrite
  • U8g2

While PlatformIO can automatically resolve library dependencies, Arduino IDE users will need to install the required libraries manually.

Running Unit Tests

To run unity unit tests, you need to use PlatformIO with Visual Studio Code. It is required to install native build tools for your platform inside PlatformIO. To run unit tests, run the following command: pio test -e native_test or start Test task under native_test environment in Visual Studio Code.

How You Can Contribute

We welcome your contributions to the ag-panel project! Whether it's code, resources, or financial support, your help is invaluable. Feel free to reach out directly via email at [email protected] or through my GitHub profile.

If you'd like to make a financial contribution to support the project's development, you can donate via PayPal or Ko-Fi. Your generosity is greatly appreciated.

Thank you in advance for your support, and let's make the ag-panel project even better together!

ag-panel's People

Contributors

red-scorp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ag-panel's Issues

build for esp8266-nodemcu boot loop

I'm trying to compile this project for an esp8266mod module. The compilation is ok but i get this from the module once it is flashed. I get the same for a nodemcu board.

`
ets Jan 8 2013,rst cause:4, boot mode:(3,2)

load 0x4010f000, len 3584, room 16 tail 0 chksum 0xb0 csum 0xb0 v2843a5ac ~ld`

And similar output with other boards variants.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.