Skip to content

Commit 1780664

Browse files
authored
Merge pull request #1 from Forairaaaaa/main
init
2 parents afb6780 + ecefab5 commit 1780664

807 files changed

Lines changed: 1643303 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.vscode
2+
build
3+
managed_components

CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
# For more information about build system see
3+
# https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html
4+
# The following five lines of boilerplate have to be in your project's
5+
# CMakeLists in this exact order for cmake to work correctly
6+
cmake_minimum_required(VERSION 3.16)
7+
8+
9+
# add_definitions(-DMC_USE_CUSTOM_CONF)
10+
11+
12+
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
13+
project(cardputer)

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,18 @@
11
# M5Cardputer-UserDemo
22
M5Cardputer user demo for hardware evaluation.
3+
4+
#### Tool Chains
5+
6+
[ESP-IDF v4.4.6](https://docs.espressif.com/projects/esp-idf/en/v4.4.6/esp32/index.html)
7+
8+
#### Build
9+
10+
```bash
11+
git clone https://github.com/m5stack/M5Cardputer-UserDemo
12+
```
13+
```bash
14+
cd M5Cardputer-UserDemo
15+
```
16+
```bash
17+
idf.py build
18+
```

components/LovyanGFX/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.pio
2+
sdkconfig*
3+
!sdkconfig.defaults
4+
build
5+
.vs
6+
.DS_Store
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# CMakeLists for ESP-IDF
2+
3+
set(COMPONENT_ADD_INCLUDEDIRS
4+
src
5+
)
6+
file(GLOB SRCS
7+
src/lgfx/Fonts/efont/*.c
8+
src/lgfx/Fonts/IPA/*.c
9+
src/lgfx/utility/*.c
10+
src/lgfx/v0/*.cpp
11+
src/lgfx/v0/panel/*.cpp
12+
src/lgfx/v0/platforms/*.cpp
13+
src/lgfx/v0/touch/*.cpp
14+
src/lgfx/v1/*.cpp
15+
src/lgfx/v1/misc/*.cpp
16+
src/lgfx/v1/panel/*.cpp
17+
src/lgfx/v1/platforms/arduino_default/*.cpp
18+
src/lgfx/v1/platforms/esp32/*.cpp
19+
src/lgfx/v1/platforms/esp32c3/*.cpp
20+
src/lgfx/v1/platforms/esp32s2/*.cpp
21+
src/lgfx/v1/platforms/esp32s3/*.cpp
22+
src/lgfx/v1/touch/*.cpp
23+
)
24+
25+
set(COMPONENT_SRCS ${SRCS})
26+
27+
if (IDF_VERSION_MAJOR GREATER_EQUAL 5)
28+
set(COMPONENT_REQUIRES nvs_flash efuse esp_lcd driver esp_timer)
29+
elseif ((IDF_VERSION_MAJOR EQUAL 4) AND (IDF_VERSION_MINOR GREATER 3) OR IDF_VERSION_MAJOR GREATER 4)
30+
set(COMPONENT_REQUIRES nvs_flash efuse esp_lcd)
31+
else()
32+
set(COMPONENT_REQUIRES nvs_flash efuse)
33+
endif()
34+
35+
36+
### If you use arduino-esp32 components, please activate next comment line.
37+
# list(APPEND COMPONENT_REQUIRES arduino-esp32)
38+
39+
40+
message(STATUS "LovyanGFX use components = ${COMPONENT_REQUIRES}")
41+
42+
register_component()

components/LovyanGFX/README.md

Lines changed: 569 additions & 0 deletions
Large diffs are not rendered by default.

components/LovyanGFX/component.mk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
# Main Makefile. This is basically the same as a component makefile.
3+
#
4+
# (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
5+
6+
COMPONENT_SRCDIRS := src
7+
COMPONENT_ADD_INCLUDEDIRS := src

components/LovyanGFX/library.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "LovyanGFX",
3+
"description": "TFT LCD Graphics driver with touch for ESP32, ESP8266, SAMD21, SAMD51, RP2040",
4+
"keywords": "lcd,tft,gfx,lgfx,esp32,esp8266,samd21,samd51,m5stack,m5stackcore2,m5stickc,m5stickcplus,odroid-go,ttgo t-watch,ttgo t-wristband,esp-wrover-kit,wioterminal,wifiboy,makepython,hx8357,ili9163,ili9342,ili9341,ili9486,ili9488,st7735,st7789,st7796,ssd1351",
5+
"authors": {
6+
"name": "lovyan03",
7+
"url": "https://github.com/lovyan03",
8+
"maintainer": true
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/lovyan03/LovyanGFX.git"
13+
},
14+
"version": "1.1.9",
15+
"frameworks": ["arduino", "espidf", "*"],
16+
"platforms": ["espressif32", "espressif8266", "atmelsam", "native"],
17+
"headers": "LovyanGFX.hpp",
18+
"build": {
19+
"libArchive": false
20+
}
21+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name=LovyanGFX
2+
version=1.1.9
3+
author=lovyan03
4+
maintainer=lovyan03
5+
sentence=TFT LCD Graphics driver with touch for ESP32, ESP8266, SAMD21, SAMD51, RP2040
6+
paragraph=Supports TFT LCD displays using drivers that operate with hardware SPI. ESP32, ESP8266, SAMD21, SAMD51, RP2040, M5Stack, M5StackCore2, M5StickC, M5StickCPlus, ODROID-GO, TTGO T-Watch, TTGO T-Wristband, ESP-WROVER-KIT, WioTerminal, WiFiBoy, MakePython, HX8357, ILI9163, ILI9342, ILI9341, ILI9486, ILI9488, ST7735, ST7789, ST7796, SSD1351
7+
category=Display
8+
url=https://github.com/lovyan03/LovyanGFX
9+
includes=LovyanGFX.hpp
10+
architectures=esp32,esp8266,samd,rp2040,mbed_rp2040,mbed_nano

components/LovyanGFX/license.txt

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
2+
Adafruit_ILI9341 ORIGINAL LIBRARY HEADER:
3+
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvStartvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
4+
This is our library for the Adafruit ILI9341 Breakout and Shield
5+
----> http://www.adafruit.com/products/1651
6+
7+
Check out the links above for our tutorials and wiring diagrams
8+
These displays use SPI to communicate, 4 or 5 pins are required to
9+
interface (RST is optional)
10+
Adafruit invests time and resources providing this open source code,
11+
please support Adafruit and open-source hardware by purchasing
12+
products from Adafruit!
13+
14+
Written by Limor Fried/Ladyada for Adafruit Industries.
15+
MIT license, all text above must be included in any redistribution
16+
17+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^End^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18+
19+
Adafruit_GFX ORIGINAL LIBRARY LICENSE:
20+
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvStartvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
21+
22+
Software License Agreement (BSD License)
23+
24+
Copyright (c) 2012 Adafruit Industries. All rights reserved.
25+
26+
Redistribution and use in source and binary forms, with or without
27+
modification, are permitted provided that the following conditions are met:
28+
29+
- Redistributions of source code must retain the above copyright notice,
30+
this list of conditions and the following disclaimer.
31+
- Redistributions in binary form must reproduce the above copyright notice,
32+
this list of conditions and the following disclaimer in the documentation
33+
and/or other materials provided with the distribution.
34+
35+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
36+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
37+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
38+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
39+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
40+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
41+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
42+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
43+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
44+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
45+
POSSIBILITY OF SUCH DAMAGE.
46+
47+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^End^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48+
49+
TFT_eSPI ORIGINAL LIBRARY LICENSE:
50+
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvStartvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
51+
Software License Agreement (FreeBSD License)
52+
53+
Copyright (c) 2020 Bodmer (https://github.com/Bodmer)
54+
55+
All rights reserved.
56+
57+
Redistribution and use in source and binary forms, with or without
58+
modification, are permitted provided that the following conditions are met:
59+
60+
1. Redistributions of source code must retain the above copyright notice, this
61+
list of conditions and the following disclaimer.
62+
2. Redistributions in binary form must reproduce the above copyright notice,
63+
this list of conditions and the following disclaimer in the documentation
64+
and/or other materials provided with the distribution.
65+
66+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
67+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
68+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
69+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
70+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
71+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
72+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
73+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
74+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
75+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
76+
77+
The views and conclusions contained in the software and documentation are those
78+
of the authors and should not be interpreted as representing official policies,
79+
either expressed or implied, of the FreeBSD Project.
80+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^End^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
81+
82+
LovyanGFX ORIGINAL LIBRARY LICENSE:
83+
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvStartvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
84+
Software License Agreement (FreeBSD License)
85+
86+
Copyright (c) 2020 lovyan03 (https://github.com/lovyan03)
87+
88+
All rights reserved.
89+
90+
Redistribution and use in source and binary forms, with or without
91+
modification, are permitted provided that the following conditions are met:
92+
93+
1. Redistributions of source code must retain the above copyright notice, this
94+
list of conditions and the following disclaimer.
95+
2. Redistributions in binary form must reproduce the above copyright notice,
96+
this list of conditions and the following disclaimer in the documentation
97+
and/or other materials provided with the distribution.
98+
99+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
100+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
101+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
102+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
103+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
104+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
105+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
106+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
107+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
108+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
109+
110+
The views and conclusions contained in the software and documentation are those
111+
of the authors and should not be interpreted as representing official policies,
112+
either expressed or implied, of the FreeBSD Project.
113+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^End^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)