Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.2.0 #639

Merged
merged 48 commits into from
Nov 22, 2024
Merged

1.2.0 #639

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
b40317c
Update Panel_RA8875.cpp (#589)
tobi807 Jul 17, 2024
d16721c
add createFromBmpFile ( path only version )
lovyan03 Jul 25, 2024
5e32d57
fix Linux FB .
lovyan03 Jul 25, 2024
f38076b
Fixed the problem that the operation of TwoWire suddenly became stran…
lovyan03 Jul 25, 2024
48e87f6
add support SSD1963 PWM backlight control. ( #586 )
lovyan03 Jul 25, 2024
aaa94e2
Fix esp-idf v5.3 compilation error with ESP32C6 (#595)
tobozo Jul 26, 2024
5907849
Add missing 'start/endWrite' calls for SSD1963 brightness (#599)
tylercamp Aug 3, 2024
043f114
Fix for fillGradientRect/VLINEAR ignoring y-coords
tobozo Aug 7, 2024
42f0986
add pushImageARGB function ( for argb8888_t* / bgra8888_t* )
lovyan03 Aug 12, 2024
b255484
rename pushImageARGB to pushAlphaImage
lovyan03 Aug 12, 2024
048b888
Merge branch 'develop' of https://github.com/lovyan03/LovyanGFX into …
tobozo Aug 20, 2024
afffd0d
Fixed an issue where the SPI peripheral would conflict with devices t…
lovyan03 Aug 22, 2024
3e449a9
add RA8875 Touch Support (#606)
tobi807 Aug 22, 2024
0e42974
Improved i2c stability for ESP32.
lovyan03 Sep 2, 2024
e30e777
Merge branch 'develop' of https://github.com/lovyan03/LovyanGFX into …
tobozo Sep 5, 2024
5081d85
Fix for pico sdk 2.0.0 build failing (RP2350 support)
tobozo Sep 5, 2024
72c9a0b
Fix for pico sdk 2.0.0 build failing (RP2350 support)
tobozo Sep 5, 2024
1401c28
Added support of the ST77961 display controller (#612)
udik-chudik Sep 6, 2024
dfa3e39
rp2350 fix from @stonedev-app's (see #619)
tobozo Oct 3, 2024
16ce271
added ignored filetype
tobozo Oct 3, 2024
2674b82
Add pico-sdk 'baremetal' support (#625)
Prime9999 Oct 4, 2024
2f6e773
removed redundant parrot data 🦜
tobozo Oct 4, 2024
516927b
bump version + update properties
tobozo Oct 4, 2024
e789d05
pico sdk build
tobozo Oct 4, 2024
4ab01c7
pico sdk build
tobozo Oct 4, 2024
0a60fd2
pico sdk build
tobozo Oct 4, 2024
d23d9a9
pico sdk build
tobozo Oct 4, 2024
cfcfbe2
pico sdk build
tobozo Oct 4, 2024
25422fa
pico sdk build matrix
tobozo Oct 4, 2024
5582933
pico sdk build matrix
tobozo Oct 4, 2024
aed4c5e
Fix pico-sdk example (#626)
Prime9999 Oct 8, 2024
bdf47a7
testing macos-latest
tobozo Oct 8, 2024
655948c
testing macos-latest
tobozo Oct 8, 2024
33ce909
tweak for ESP-IDF v5
lovyan03 Nov 5, 2024
9fa7b36
fix compile error
lovyan03 Nov 5, 2024
39453a0
fix compile error
lovyan03 Nov 5, 2024
898f16d
fix compile error
lovyan03 Nov 5, 2024
d26cf3f
fix compile error
lovyan03 Nov 5, 2024
dd530b2
rising version
lovyan03 Nov 5, 2024
330782d
fix compile error
lovyan03 Nov 5, 2024
eec5c87
Add argument to take QR code standard margin. ( thanks @GOB52 )
lovyan03 Nov 5, 2024
894e434
fix compile error
lovyan03 Nov 5, 2024
39fd9ae
fix compile error for ESP-IDF v5.4? ( #635 )
lovyan03 Nov 6, 2024
56c8768
tweak for ESP-IDF v5.4.x
lovyan03 Nov 6, 2024
d715d58
fix compile error
lovyan03 Nov 6, 2024
d05290f
fix compiler warning
lovyan03 Nov 11, 2024
b3a39bb
fix compile error
lovyan03 Nov 11, 2024
4168ba6
Add GC9307 panel. (#645)
lbuque Nov 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions .github/workflows/PicoSDKBuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: PicoSDKBuild

env:
WORKSPACE_DIR: examples_for_picosdk
PROJECT_DIR: i2c

on:
push:
paths:
- '**.ino'
- '**.cpp'
- '**.hpp'
- '**.h'
- '**.c'
- '**PicoSDKBuild.yml'
pull_request:
workflow_dispatch:

jobs:
build:
name: ${{ matrix.board }}@${{ matrix.sdk-version }}

runs-on: ubuntu-latest

strategy:
matrix:

include:
- { board: rp2350, sdk-version: 2.0.0, sdk-extras-version: sdk-2.0.0 }
- { board: rp2040, sdk-version: 2.0.0, sdk-extras-version: sdk-2.0.0 }
- { board: rp2040, sdk-version: 1.5.1, sdk-extras-version: sdk-1.5.1 }

fail-fast: false

steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

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

- name: install deps
run: |
sudo apt install ca-certificates build-essential avr-libc gcc-avr gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib libusb-1.0-0-dev cmake

- name: compile
run: |
cd ${{env.WORKSPACE_DIR}}

git clone -b ${{ matrix.sdk-version }} --depth 1 https://github.com/raspberrypi/pico-sdk
git clone -b ${{ matrix.sdk-extras-version }} --depth 1 https://github.com/raspberrypi/pico-extras

cd pico-sdk
git submodule update --init
cd ..

export PICO_SDK_PATH="$(pwd)/pico-sdk"
export PICO_SDK_EXTRAS_PATH="$(pwd)/pico-extras"
export PICO_PLATFORM="${{ matrix.board }}"

cp pico-sdk/external/pico_sdk_import.cmake ./
cp pico-extras/external/pico_extras_import.cmake ./pico_extras_import_optional.cmake

cd ${{env.PROJECT_DIR}}
ln -sv ../../../LovyanGFX LovyanGFX

mkdir -p build
cd build
cmake ..
make -j $(nproc)

4 changes: 2 additions & 2 deletions .github/workflows/SDLBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
matrix:
include:
- { os: windows-latest }
- { os: macos-12 }
- { os: macos-latest }
- { os: ubuntu-latest }

steps:
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:


- name: Build LGFX_SDL2 for Mac
if: ${{ matrix.os == 'macos-12' }}
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew install sdl2
cp .github/scripts/SDL.cmake ${{ env.PROJECT_DIR }}/CMakeLists.txt
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ sdkconfig*
build
.vs
.DS_Store
.directory
42 changes: 9 additions & 33 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,38 +1,14 @@
# CMakeLists for ESP-IDF
set (LGFX_ROOT ${CMAKE_CURRENT_LIST_DIR})

set(COMPONENT_ADD_INCLUDEDIRS
src
)
file(GLOB SRCS
src/lgfx/Fonts/efont/*.c
src/lgfx/Fonts/IPA/*.c
src/lgfx/utility/*.c
src/lgfx/v1/*.cpp
src/lgfx/v1/misc/*.cpp
src/lgfx/v1/panel/*.cpp
src/lgfx/v1/platforms/arduino_default/*.cpp
src/lgfx/v1/platforms/esp32/*.cpp
src/lgfx/v1/platforms/esp32c3/*.cpp
src/lgfx/v1/platforms/esp32s2/*.cpp
src/lgfx/v1/platforms/esp32s3/*.cpp
src/lgfx/v1/touch/*.cpp
)
# Espressif ESP* based boards
if (DEFINED ESP_PLATFORM)
include(${LGFX_ROOT}/boards.cmake/esp-idf.cmake)

set(COMPONENT_SRCS ${SRCS})
# Raspberry Pi RP* based boards
elseif ((DEFINED PICO_PLATFORM) OR (DEFINED PICO_BOARD))
include(${LGFX_ROOT}/boards.cmake/pico-sdk.cmake)

if (IDF_VERSION_MAJOR GREATER_EQUAL 5)
set(COMPONENT_REQUIRES nvs_flash efuse esp_lcd driver esp_timer)
elseif ((IDF_VERSION_MAJOR EQUAL 4) AND (IDF_VERSION_MINOR GREATER 3) OR IDF_VERSION_MAJOR GREATER 4)
set(COMPONENT_REQUIRES nvs_flash efuse esp_lcd)
# Cannot determine boards type
else()
set(COMPONENT_REQUIRES nvs_flash efuse)
message("Error: No platform specified")
endif()


### If you use arduino-esp32 components, please activate next comment line.
# list(APPEND COMPONENT_REQUIRES arduino-esp32)


message(STATUS "LovyanGFX use components = ${COMPONENT_REQUIRES}")

register_component()
38 changes: 38 additions & 0 deletions boards.cmake/esp-idf.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# CMakeLists for ESP-IDF

set(COMPONENT_ADD_INCLUDEDIRS
${LGFX_ROOT}/src
)
file(GLOB SRCS
${LGFX_ROOT}/src/lgfx/Fonts/efont/*.c
${LGFX_ROOT}/src/lgfx/Fonts/IPA/*.c
${LGFX_ROOT}/src/lgfx/utility/*.c
${LGFX_ROOT}/src/lgfx/v1/*.cpp
${LGFX_ROOT}/src/lgfx/v1/misc/*.cpp
${LGFX_ROOT}/src/lgfx/v1/panel/*.cpp
${LGFX_ROOT}/src/lgfx/v1/platforms/arduino_default/*.cpp
${LGFX_ROOT}/src/lgfx/v1/platforms/esp32/*.cpp
${LGFX_ROOT}/src/lgfx/v1/platforms/esp32c3/*.cpp
${LGFX_ROOT}/src/lgfx/v1/platforms/esp32s2/*.cpp
${LGFX_ROOT}/src/lgfx/v1/platforms/esp32s3/*.cpp
${LGFX_ROOT}/src/lgfx/v1/touch/*.cpp
)

set(COMPONENT_SRCS ${SRCS})

if (IDF_VERSION_MAJOR GREATER_EQUAL 5)
set(COMPONENT_REQUIRES nvs_flash efuse esp_lcd driver esp_timer)
elseif ((IDF_VERSION_MAJOR EQUAL 4) AND (IDF_VERSION_MINOR GREATER 3) OR IDF_VERSION_MAJOR GREATER 4)
set(COMPONENT_REQUIRES nvs_flash efuse esp_lcd)
else()
set(COMPONENT_REQUIRES nvs_flash efuse)
endif()


### If you use arduino-esp32 components, please activate next comment line.
# list(APPEND COMPONENT_REQUIRES arduino-esp32)


message(STATUS "LovyanGFX use components = ${COMPONENT_REQUIRES}")

register_component()
50 changes: 50 additions & 0 deletions boards.cmake/pico-sdk.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# CMakeLists for PICO SDK

include(${PICO_SDK_PATH}/external/pico_sdk_import.cmake)

pico_sdk_init()

add_compile_definitions(
USE_PICO_SDK=1
)

# pico_add_library()
add_library(LovyanGFX_headers INTERFACE)
add_library(LovyanGFX INTERFACE)

target_include_directories(
LovyanGFX_headers INTERFACE
src
)

#add_compile_definitions
target_compile_definitions(LovyanGFX INTERFACE
USE_PICO_SDK
)

file(GLOB SRCS
src/lgfx/Fonts/efont/*.c
src/lgfx/Fonts/IPA/*.c
src/lgfx/utility/*.c
src/lgfx/v1/*.cpp
src/lgfx/v1/misc/*.cpp
src/lgfx/v1/panel/*.cpp
src/lgfx/v1/platforms/arduino_default/*.cpp
src/lgfx/v1/platforms/rp2040/*.cpp
src/lgfx/v1/touch/*.cpp
)
target_sources(LovyanGFX INTERFACE ${SRCS})
target_link_libraries(LovyanGFX INTERFACE
LovyanGFX_headers
pico_stdlib
pico_float
pico_double
hardware_dma
hardware_gpio
hardware_spi
hardware_i2c
hardware_pwm
)

pico_enable_stdio_usb(LovyanGFX 0)
pico_enable_stdio_uart(LovyanGFX 1)
Loading
Loading