Skip to content

Commit fe83285

Browse files
committed
Arduino Core 3.3.0
1 parent 282e0c7 commit fe83285

File tree

17 files changed

+457
-41
lines changed

17 files changed

+457
-41
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pioarduino (p)eople (i)nitiated (o)ptimized (arduino)
22

3-
[![Build Status](https://github.com/pioarduino/platform-espressif32/actions/workflows/examples.yml/badge.svg)](https://github.com/pioarduino/platform-espressif32/actions)
3+
[![CI Examples](https://github.com/pioarduino/platform-espressif32/actions/workflows/examples.yml/badge.svg?branch=develop)](https://github.com/pioarduino/platform-espressif32/actions/workflows/examples.yml)
44
[![Discord](https://img.shields.io/discord/1263397951829708871.svg?logo=discord&logoColor=white&color=5865F2&label=Discord)](https://discord.gg/Nutz9crnZr)
55
[![GitHub Releases](https://img.shields.io/github/downloads/pioarduino/platform-espressif32/total?label=downloads)](https://github.com/pioarduino/platform-espressif32/releases/latest)
66

@@ -9,8 +9,8 @@ Espressif Systems is a privately held, fabless semiconductor company renowned fo
99
## General
1010
* Issues with boards (wrong / missing). All issues caused from boards will not be fixed from the maintainer(s). A PR needs to be provided against branch `develop` to solve.
1111
* No support for the Arduino Nora Nano board, issues needs to be solved by the community
12-
## IDE Preparation
1312

13+
## IDE Preparation
1414
- [Download and install Microsoft Visual Studio Code](https://code.visualstudio.com/). pioarduino IDE is on top of it.
1515
- Open the extension manager.
1616
- Search for the `pioarduino ide` extension.
@@ -25,7 +25,7 @@ Espressif Systems is a privately held, fabless semiconductor company renowned fo
2525
The Wiki is AI generated and insane detailed and accurate.
2626

2727
### Stable Arduino
28-
currently espressif Arduino 3.2.1 and IDF 5.4.2
28+
currently espressif Arduino 3.3.0 and IDF 5.5.0
2929

3030
```ini
3131
[env:stable]
@@ -49,13 +49,13 @@ Example configuration:
4949

5050
```ini
5151
[env:esp32solo1]
52-
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
52+
platform = https://github.com/pioarduino/platform-espressif32.git#develop
5353
framework = arduino
5454
board = esp32-solo1
5555
monitor_speed = 115200
5656

5757
[env:esp32-c2-devkitm-1]
58-
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
58+
platform = https://github.com/pioarduino/platform-espressif32.git#develop
5959
framework = arduino
6060
board = esp32-c2-devkitm-1
6161
monitor_speed = 115200

boards/esp32-c5-devkitc-1.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"build": {
3+
"core": "esp32",
4+
"f_cpu": "240000000L",
5+
"f_flash": "80000000L",
6+
"flash_mode": "qio",
7+
"mcu": "esp32c5",
8+
"variant": "esp32c5"
9+
},
10+
"connectivity": [
11+
"bluetooth",
12+
"wifi"
13+
],
14+
"debug": {
15+
"openocd_target": "esp32c5.cfg"
16+
},
17+
"frameworks": [
18+
"arduino",
19+
"espidf"
20+
],
21+
"name": "Espressif ESP32-C5-DevKitC-1 4MB no PSRAM",
22+
"upload": {
23+
"flash_size": "4MB",
24+
"maximum_ram_size": 327680,
25+
"maximum_size": 4194304,
26+
"require_upload_port": true,
27+
"speed": 460800
28+
},
29+
"url": "https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32c5/esp32-c5-devkitc-1/user_guide.html",
30+
"vendor": "Espressif"
31+
}

boards/yb_esp32s3_drv.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"build": {
3+
"arduino":{
4+
"partitions": "default_8MB.csv",
5+
"memory_type": "qio_qspi"
6+
},
7+
"core": "esp32",
8+
"extra_flags": [
9+
"-DARDUINO_YB_ESP32S3_DRV",
10+
"-DARDUINO_USB_MODE=1",
11+
"-DARDUINO_USB_CDC_ON_BOOT=1",
12+
"-DARDUINO_RUNNING_CORE=1",
13+
"-DARDUINO_EVENT_RUNNING_CORE=1",
14+
"-DBOARD_HAS_PSRAM"
15+
],
16+
"f_cpu": "240000000L",
17+
"f_flash": "80000000L",
18+
"flash_mode": "qio",
19+
"hwids": [
20+
[
21+
"0x303A",
22+
"0x1001"
23+
]
24+
],
25+
"mcu": "esp32s3",
26+
"variant": "yb_esp32s3_drv"
27+
},
28+
"connectivity": [
29+
"wifi",
30+
"bluetooth"
31+
],
32+
"debug": {
33+
"openocd_target": "esp32s3.cfg"
34+
},
35+
"frameworks": [
36+
"arduino",
37+
"espidf"
38+
],
39+
"name": "YelloByte YB-ESP32-S3-DRV",
40+
"upload": {
41+
"flash_size": "8MB",
42+
"maximum_ram_size": 327680,
43+
"maximum_size": 8388608,
44+
"require_upload_port": true,
45+
"speed": 460800
46+
},
47+
"url": "https://github.com/yellobyte/YB-ESP32-S3-DRV",
48+
"vendor": "YelloByte"
49+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
Based on Neil Kolban example for IDF: https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/tests/BLE%20Tests/SampleScan.cpp
3+
Ported to Arduino ESP32 by Evandro Copercini
4+
*/
5+
6+
#include <BLEDevice.h>
7+
#include <BLEUtils.h>
8+
#include <BLEScan.h>
9+
#include <BLEAdvertisedDevice.h>
10+
11+
int scanTime = 5; //In seconds
12+
BLEScan *pBLEScan;
13+
14+
class MyAdvertisedDeviceCallbacks : public BLEAdvertisedDeviceCallbacks {
15+
void onResult(BLEAdvertisedDevice advertisedDevice) {
16+
Serial.printf("Advertised Device: %s \n", advertisedDevice.toString().c_str());
17+
}
18+
};
19+
20+
void setup() {
21+
Serial.begin(115200);
22+
Serial.println("Scanning...");
23+
24+
BLEDevice::init("");
25+
pBLEScan = BLEDevice::getScan(); //create new scan
26+
pBLEScan->setAdvertisedDeviceCallbacks(new MyAdvertisedDeviceCallbacks());
27+
pBLEScan->setActiveScan(true); //active scan uses more power, but get results faster
28+
pBLEScan->setInterval(100);
29+
pBLEScan->setWindow(99); // less or equal setInterval value
30+
}
31+
32+
void loop() {
33+
// put your main code here, to run repeatedly:
34+
BLEScanResults *foundDevices = pBLEScan->start(scanTime, false);
35+
Serial.print("Devices found: ");
36+
Serial.println(foundDevices->getCount());
37+
Serial.println("Scan done!");
38+
pBLEScan->clearResults(); // delete results fromBLEScan buffer to release memory
39+
delay(2000);
40+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.pio
2+
.vscode
3+
.dependencies.lock
4+
sdkconfig.esp32c6
5+
managed_components
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cmake_minimum_required(VERSION 3.16.0)
2+
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
3+
project(espidf-arduino-c6-ulp-blink)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Arduino ULP Example for the ESP32-C6
2+
3+
This example shows how to run a C program on the ESP32-C6 ULP core with Arduino (as an component of ESP-IDF)
4+
5+
## Two programs run parallel
6+
7+
1. **Arduino on the High Power Core (HP Core):** The Arduino program blinks the onboard RGB
8+
2. **C Program on the Ultra-Low Power Core (ULP):** The ULP C program blinks an external LED connected to GPIO3
9+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
This directory is intended for project header files.
3+
4+
A header file is a file containing C declarations and macro definitions
5+
to be shared between several project source files. You request the use of a
6+
header file in your project source file (C, C++, etc) located in `src` folder
7+
by including it, with the C preprocessing directive `#include'.
8+
9+
```src/main.c
10+
11+
#include "header.h"
12+
13+
int main (void)
14+
{
15+
...
16+
}
17+
```
18+
19+
Including a header file produces the same results as copying the header file
20+
into each source file that needs it. Such copying would be time-consuming
21+
and error-prone. With a header file, the related declarations appear
22+
in only one place. If they need to be changed, they can be changed in one
23+
place, and programs that include the header file will automatically use the
24+
new version when next recompiled. The header file eliminates the labor of
25+
finding and changing all the copies as well as the risk that a failure to
26+
find one copy will result in inconsistencies within a program.
27+
28+
In C, the usual convention is to give header files names that end with `.h'.
29+
It is most portable to use only letters, digits, dashes, and underscores in
30+
header file names, and at most one dot.
31+
32+
Read more about using header files in official GCC documentation:
33+
34+
* Include Syntax
35+
* Include Operation
36+
* Once-Only Headers
37+
* Computed Includes
38+
39+
https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
2+
This directory is intended for project specific (private) libraries.
3+
PlatformIO will compile them to static libraries and link into executable file.
4+
5+
The source code of each library should be placed in a an own separate directory
6+
("lib/your_library_name/[here are source files]").
7+
8+
For example, see a structure of the following two libraries `Foo` and `Bar`:
9+
10+
|--lib
11+
| |
12+
| |--Bar
13+
| | |--docs
14+
| | |--examples
15+
| | |--src
16+
| | |- Bar.c
17+
| | |- Bar.h
18+
| | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html
19+
| |
20+
| |--Foo
21+
| | |- Foo.c
22+
| | |- Foo.h
23+
| |
24+
| |- README --> THIS FILE
25+
|
26+
|- platformio.ini
27+
|--src
28+
|- main.c
29+
30+
and a contents of `src/main.c`:
31+
```
32+
#include <Foo.h>
33+
#include <Bar.h>
34+
35+
int main (void)
36+
{
37+
...
38+
}
39+
40+
```
41+
42+
PlatformIO Library Dependency Finder will find automatically dependent
43+
libraries scanning project source files.
44+
45+
More information about PlatformIO Library Dependency Finder
46+
- https://docs.platformio.org/page/librarymanager/ldf.html
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
; PlatformIO Project Configuration File
2+
;
3+
; Build options: build flags, source filter, extra scripting
4+
; Upload options: custom port, speed, and extra flags
5+
; Library options: dependencies, extra library storages
6+
;
7+
; Documentation: https://docs.platformio.org/page/projectconf.html
8+
9+
[env:esp32c6]
10+
platform = espressif32
11+
framework = arduino, espidf
12+
board = esp32-c6-devkitc-1
13+
monitor_speed = 115200
14+
lib_deps =
15+
16+
custom_component_remove =
17+
espressif/esp_hosted
18+
espressif/esp_wifi_remote
19+
espressif/esp-dsp
20+
espressif/esp32-camera
21+
espressif/libsodium
22+
espressif/esp-modbus
23+
espressif/qrcode
24+
espressif/esp_insights
25+
espressif/esp_diag_data_store
26+
espressif/esp_diagnostics
27+
espressif/esp_rainmaker
28+
espressif/rmaker_common

0 commit comments

Comments
 (0)