Skip to content

Commit

Permalink
boards: add lilka_v2 board
Browse files Browse the repository at this point in the history
lib: fix C/D pin numbers
  • Loading branch information
and3rson committed Feb 17, 2024
1 parent 1282075 commit e831ece
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 23 deletions.
61 changes: 61 additions & 0 deletions boards/lilka_v2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"build": {
"arduino":{
"ldscript": "esp32s3_out.ld",
"memory_type": "qio_opi",
"partitions": "default_16MB.csv"
},
"core": "esp32",
"extra_flags": [
"-DARDUINO_LILKA",
"-DLILKA_VERSION=2",
"-DARDUINO_USB_CDC_ON_BOOT=1",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1",
"-DBOARD_HAS_PSRAM"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
"flash_mode": "qio",
"hwids": [
[
"0x239A",
"0x8145"
],
[
"0x239A",
"0x0145"
],
[
"0x239A",
"0x8146"
]
],
"mcu": "esp32s3",
"variant": "esp32s3"
},
"connectivity": [
"bluetooth",
"wifi"
],
"debug": {
"openocd_target": "esp32s3.cfg"
},
"frameworks": [
"arduino",
"espidf"
],
"name": "Lilka v2",
"upload": {
"flash_size": "16MB",
"maximum_ram_size": 327680,
"maximum_size": 16777216,
"use_1200bps_touch": true,
"wait_for_upload_port": true,
"require_upload_port": true,
"speed": 460800
},
"url": "https://github.com/and3rson/lilka",
"vendor": "Anderson & friends"
}

13 changes: 6 additions & 7 deletions firmware-demo/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[platformio]
boards_dir = ../boards
lib_dir = ../lib

[env:v1]
platform = espressif32
board = adafruit_qtpy_esp32c3
Expand All @@ -18,16 +22,11 @@ lib_deps =
olikraus/U8g2@^2.35.9
; moononournation/GFX Library for [email protected]
build_flags = -D LILKA_VERSION=1
lib_extra_dirs = ../lib
; lib_extra_dirs = ../lib

[env:v2]
platform = espressif32
board = adafruit_metro_esp32s3
board = lilka_v2
framework = arduino
lib_deps =
https://github.com/moononournation/arduino-nofrendo.git
https://github.com/moononournation/Arduino_GFX.git
olikraus/U8g2@^2.35.9
; moononournation/GFX Library for [email protected]
build_flags = -D LILKA_VERSION=2
lib_extra_dirs = ../lib
14 changes: 13 additions & 1 deletion lib/lilka/library.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
{
"name": "Lilka",
"version": "1.0.0",
"license": "MIT"
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/and3rson/lilka.git"
},
"include": "lib/lilka",
"dependencies": {
"Arduino_GFX": "https://github.com/moononournation/Arduino_GFX.git",
"olikraus/U8g2": "^2.35.9"
},
"homepage": "https://github.com/and3rson/lilka",
"frameworks": "arduino",
"platforms": "espressif32"
}
15 changes: 2 additions & 13 deletions lib/lilka/platformio.ini
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:esp32c3]
[env:v2]
platform = espressif32
board = adafruit_qtpy_esp32c3
framework = arduino
lib_deps =
https://github.com/moononournation/arduino-nofrendo.git
moononournation/GFX Library for Arduino@^1.4.2
https://github.com/moononournation/Arduino_GFX.git
olikraus/U8g2@^2.35.9
build_flags = -D LILKA_VERSION=2
4 changes: 2 additions & 2 deletions lib/lilka/src/lilka/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
# define LILKA_GPIO_START 4
# define LILKA_GPIO_A 5
# define LILKA_GPIO_B 6
# define LILKA_GPIO_C 9
# define LILKA_GPIO_D 10
# define LILKA_GPIO_C 10
# define LILKA_GPIO_D 9
// SPI
# define LILKA_SPI_SCK 18
# define LILKA_SPI_MOSI 17
Expand Down

0 comments on commit e831ece

Please sign in to comment.