Skip to content

Commit

Permalink
prepare OTA config
Browse files Browse the repository at this point in the history
  • Loading branch information
mcuw committed Mar 31, 2023
1 parent 5a02fd2 commit d23c1c0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

This project provides firmwares for ESP32 microcontrollers to enhance your closet with lighting. It supports [esp32](https://www.espressif.com/en/products/socs/esp32), [esp32s2](https://www.espressif.com/en/products/socs/esp32-s2) and [esp32s3](https://www.espressif.com/en/products/socs/esp32-s3) microcontroller boards.

## Features

### Sensors

- PIR
Expand All @@ -13,6 +15,9 @@ This project provides firmwares for ESP32 microcontrollers to enhance your close

- LED-Stripe

### OTA

- Firmware update over github.com

## CHANGELOG

Expand All @@ -23,7 +28,6 @@ Release notes see [CHANGELOG.md](CHANGELOG.md).

see [Releases](https://github.com/mcuw/esp-ghbuild-template/releases) on the right sidemenu.

---

## Disclaimer

Expand Down
2 changes: 2 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

[env]
build_flags =
'-DPIOENV="${PIOENV}"'

; coding_standards
-Wno-unused-variable
-Wno-unused-but-set-variable
Expand Down
7 changes: 7 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include <Arduino.h>

#define REPOSITORY "mcuw/esp-closet-lighting"
#define FIRMWARE_VERSION 1

void setup()
{
Serial.begin(115200);
Expand All @@ -10,5 +13,9 @@ void setup()
void loop()
{
Serial.println("Hello ECL");

Serial.print("env: ");
Serial.println(PIOENV); // env for firmware filename

delay(2000);
}

0 comments on commit d23c1c0

Please sign in to comment.