You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Build a Matter accessory using Embedded Swift
6
6
7
7
<!-- Image -->
8
8
9
-
This repository contains an example simple Embedded Swift application that implements a Matter smart light accessory and can be used from HomeKit. The examples use an ESP32-C6 (RISC-V) microcontroller and build on top of the ESP-IDF and ESP-Matter SDKs.
9
+
This repository contains an example simple Embedded Swift application that implements a Matter smart light accessory and can be used from HomeKit. The examples use an ESP32-C6 or ESP32-C3 (RISC-V) microcontroller and build on top of the ESP-IDF and ESP-Matter SDKs.
10
10
11
11
> [!NOTE]
12
12
> This repository is associated with WWDC24 session 10197: [Go small with Embedded Swift](https://developer.apple.com/wwdc24/10197).
@@ -37,7 +37,7 @@ Before running the examples, ensure you have the following tools available:
@@ -59,17 +59,17 @@ Ensure your shell has access to the tools listed above, see [Get started on macO
59
59
$ cd swift-matter-examples/smart-light
60
60
```
61
61
62
-
2. Configure the build system for your microcontroller.
62
+
2. Configure the build system for your microcontroller, the `smart-light` example should also be runnable on `esp32c3`.
63
63
```shell
64
64
$ idf.py set-target esp32c6
65
65
```
66
66
67
-
3. Build and deploy the application to your device.
67
+
3. Build and deploy the application to your device.
68
68
```shell
69
69
$ idf.py build flash monitor
70
70
```
71
71
72
-
Explore the implementation, see [Explore the LED Blink example](https://apple.github.io/swift-matter-examples/tutorials/swiftmatterexamples/run-example-led-blink#Understand-the-code) and
72
+
Explore the implementation, see [Explore the LED Blink example](https://apple.github.io/swift-matter-examples/tutorials/swiftmatterexamples/run-example-led-blink#Understand-the-code) and
73
73
[Explore the Smart Light example](https://apple.github.io/swift-matter-examples/tutorials/swiftmatterexamples/run-example-smart-light#Understand-the-code) for guided walkthroughs.
Copy file name to clipboardExpand all lines: smart-light/README.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Embedded Swift Matter Example: Smart Light example
2
2
3
-
This directory contains an example implementation of a Matter smart LED light accessory in Embedded Swift, and it can be built using the ESP IDF and ESP Matter SDKs, and uploaded to an ESP32C6 development board.
3
+
This directory contains an example implementation of a Matter smart LED light accessory in Embedded Swift, and it can be built using the ESP IDF and ESP Matter SDKs, and uploaded to an ESP32C6 or ESP32C3 development board.
4
4
5
5
Breakdown of the files included:
6
6
@@ -27,7 +27,7 @@ Breakdown of the files included:
27
27
For full steps how to build the example code, follow the [Setup Your Environment](https://apple.github.io/swift-embedded/swift-matter-examples/tutorials/tutorial-table-of-contents#setup-your-environment) tutorials and the [Explore the Smart Light example](https://apple.github.io/swift-matter-examples/tutorials/swiftmatterexamples/run-example-smart-light) tutorial. In summary:
28
28
29
29
- Ensure your system has all the required software installed and your shell has access to the tools listed in the top-level README file.
30
-
- Plug in the ESP32C6 development board via a USB cable.
30
+
- Plug in the ESP32C6/C3 development board via a USB cable.
31
31
- Have a set up HomeKit or other Matter-enabled smart home ecosystem.
32
32
- For HomeKit, this includes a configured home, a Wi-Fi network which additional devices can join, a [home hub](https://support.apple.com/en-us/102557), and an iOS device for managing the home.
33
33
@@ -37,17 +37,17 @@ For full steps how to build the example code, follow the [Setup Your Environment
37
37
$ cd swift-matter-examples/smart-light
38
38
```
39
39
40
-
2. Configure the build system for your microcontroller.
40
+
2. Configure the build system for your microcontroller, this example should also be runnable on `esp32c3`.
41
41
```shell
42
42
$ idf.py set-target esp32c6
43
43
```
44
44
45
-
3. Build and deploy the application to your device.
45
+
3. Build and deploy the application to your device.
46
46
```shell
47
47
$ idf.py build flash monitor
48
48
```
49
49
50
-
4. Register the device in your home network. See [Connect-using-Matter](https://apple.github.io/swift-matter-examples/tutorials/swiftmatterexamples/run-example-smart-light#Connect-using-Matter) for detailed pairing instructions with HomeKit.
50
+
4. Register the device in your home network. See [Connect-using-Matter](https://apple.github.io/swift-matter-examples/tutorials/swiftmatterexamples/run-example-smart-light#Connect-using-Matter) for detailed pairing instructions with HomeKit.
51
51
52
52
5. You can now control the smart light. In case of a HomeKit network, the Home app, and Siri can both be used to turn the light on, off, change colors, etc.
0 commit comments