Skip to content

Commit

Permalink
Merge pull request PlummersSoftwareLLC#626 from davepl/main
Browse files Browse the repository at this point in the history
Menagerie of changes - Stocks effect, AMOLED support, etc.
  • Loading branch information
rbergen authored May 20, 2024
2 parents 6abfdc1 + a1ded0f commit 48ac73c
Show file tree
Hide file tree
Showing 32 changed files with 4,097 additions and 252 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Find environments
id: envs
run: echo "envs=$(tools/show_envs.py)" >> $GITHUB_OUTPUT
run: |
if [[ $(< config/ci_exclude.json) != '[]' ]]; then echo "::warning title=Some environments were skipped::Environments not built: $(< config/ci_exclude.json)"; fi
echo "envs=$(tools/show_envs.py | jq -c --argfile ex config/ci_exclude.json '. - $ex')" >> $GITHUB_OUTPUT
outputs:
envs: ${{ steps.envs.outputs.envs }}
Expand All @@ -33,10 +35,10 @@ jobs:
envname: ${{ fromJson(needs.collect-environments.outputs.envs) }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'

Expand Down Expand Up @@ -66,7 +68,7 @@ jobs:

steps:
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'

Expand All @@ -79,7 +81,7 @@ jobs:
remove-dotnet: 'true'
remove-haskell: 'true'

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install PlatformIO
run: |
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ _Davepl, 9/19/2021_
- [Sample parts (Plummer's Software LLC Amazon affiliate links)](#sample-parts-plummers-software-llc-amazon-affiliate-links)
- [Contributing, and the BlinkenPerBit metric](#contributing-and-the-blinkenperbit-metric)
- [Time it takes to build this project](#time-it-takes-to-build-this-project)
- [Old Build times, no longer relevant with current platformio, just historical curiosity:](#old-build-times-no-longer-relevant-with-current-platformio-just-historical-curiosity)

## What NightDriverStrip is

Expand Down Expand Up @@ -250,7 +251,7 @@ Furthermore, it's also possible to "ignore" the persisted effect list altogether

## Fetching things from the Internet

If you develop an effect that requires data to be pulled in from the Internet then you can register a network reader function with the `NetworkReader` class, which is available via the `g_ptrSystem->NetworkReader()` global reference. You can use either the `PatternSubscribers` or `PatternWeather` effects as sources of inspiration.
If you develop an effect that requires data to be pulled in from the Internet then you can register a network reader function with the `NetworkReader` class, which is available via the `g_ptrSystem->NetworkReader()` global reference. You can use either the `PatternSubscribers` or `PatternWeather` effects as sources of inspiration. PatternStocks pulls live (15-min delay) stock quotes from a private server.

## Build pointers

Expand Down Expand Up @@ -361,7 +362,7 @@ To replicate, build the mesmerizer project. Then delete pio/build_cache and bui
- 3970X, 128GB [32-core, 64-thread] Windows11+WSL2/Ubuntu02.04LTS
-> [davepl 11/29/2023] 34.292 seconds

- Mac M1 Ultra Studio [10-core, 20-thread]
- Mac M1 Ultra Studio [10-core, 20-thread]
-> [davepl 11/29/2023] 48.368 seconds

## Old Build times, no longer relevant with current platformio, just historical curiosity:
Expand Down
46 changes: 46 additions & 0 deletions boards/lilygo-t-amoled.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"build": {
"arduino":{
"ldscript": "esp32s3_out.ld",
"memory_type": "qio_opi",
"partitions": "default_16MB.csv"
},
"core": "esp32",
"extra_flags": [
"-DBOARD_HAS_PSRAM",
"-DARDUINO_USB_MODE=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
"flash_mode": "qio",
"hwids": [
[
"0X303A",
"0x1001"
]
],
"mcu": "esp32s3",
"variant": "esp32s3"
},
"connectivity": [
"wifi",
"bluetooth"
],
"debug": {
"openocd_target": "esp32s3.cfg"
},
"frameworks": [
"arduino",
"espidf"
],
"name": "LILYGO T-DISPLAY-AMOLED",
"upload": {
"flash_size": "16MB",
"maximum_ram_size": 327680,
"maximum_size": 16777216,
"require_upload_port": true,
"speed": 921600
},
"url": "https://www.lilygo.cc/products/t-display-s3-amoled",
"vendor": "LILYGO"
}
1 change: 1 addition & 0 deletions config/ci_exclude.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["heltecv3demo"]
15 changes: 15 additions & 0 deletions include/amoled/LV_Helper.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* @file LV_Helper.h
* @author Lewis He (lewishe@outlook.com)
* @license MIT
* @copyright Copyright (c) 2023 Shenzhen Xin Yuan Electronic Technology Co., Ltd
* @date 2023-04-20
*
*/

#pragma once
#include <lvgl.h>
#include "LilyGo_Display.h"


void beginLvglHelper(LilyGo_Display &board, bool debug = false);
Loading

0 comments on commit 48ac73c

Please sign in to comment.