diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dc3c0e0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,28 @@ +.pio +.vscode/.browse.c_cpp.db* +.vscode/c_cpp_properties.json +.vscode/launch.json +.vscode/ipch +# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode +# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode + +### VisualStudioCode ### +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets + +# Local History for Visual Studio Code +.history/ + +# Built Visual Studio Code Extensions +*.vsix + +### VisualStudioCode Patch ### +# Ignore all local history of files +.history +.ionide + +# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..080e70d --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,10 @@ +{ + // See http://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + "platformio.platformio-ide" + ], + "unwantedRecommendations": [ + "ms-vscode.cpptools-extension-pack" + ] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..e82b21d --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,44 @@ +// AUTOMATICALLY GENERATED FILE. PLEASE DO NOT MODIFY IT MANUALLY +// +// PIO Unified Debugger +// +// Documentation: https://docs.platformio.org/page/plus/debugging.html +// Configuration: https://docs.platformio.org/page/projectconf/section_env_debug.html + +{ + "version": "0.2.0", + "configurations": [ + { + "type": "platformio-debug", + "request": "launch", + "name": "PIO Debug", + "executable": "/Users/gaugendre/Projects/buzzer/.pio/build/wemos_d1_mini32/firmware.elf", + "projectEnvName": "wemos_d1_mini32", + "toolchainBinDir": "/Users/gaugendre/.platformio/packages/toolchain-xtensa-esp32/bin", + "internalConsoleOptions": "openOnSessionStart", + "preLaunchTask": { + "type": "PlatformIO", + "task": "Pre-Debug" + } + }, + { + "type": "platformio-debug", + "request": "launch", + "name": "PIO Debug (skip Pre-Debug)", + "executable": "/Users/gaugendre/Projects/buzzer/.pio/build/wemos_d1_mini32/firmware.elf", + "projectEnvName": "wemos_d1_mini32", + "toolchainBinDir": "/Users/gaugendre/.platformio/packages/toolchain-xtensa-esp32/bin", + "internalConsoleOptions": "openOnSessionStart" + }, + { + "type": "platformio-debug", + "request": "launch", + "name": "PIO Debug (without uploading)", + "executable": "/Users/gaugendre/Projects/buzzer/.pio/build/wemos_d1_mini32/firmware.elf", + "projectEnvName": "wemos_d1_mini32", + "toolchainBinDir": "/Users/gaugendre/.platformio/packages/toolchain-xtensa-esp32/bin", + "internalConsoleOptions": "openOnSessionStart", + "loadMode": "manual" + } + ] +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..793aa39 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Buzzer +## Build +```shell +pio run +``` diff --git a/platformio.ini b/platformio.ini index 6869843..a038c8a 100644 --- a/platformio.ini +++ b/platformio.ini @@ -12,3 +12,8 @@ platform = espressif32 board = wemos_d1_mini32 framework = arduino +monitor_speed = 115200 + +lib_deps = + ESP Async WebServer + AsyncTCP diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..61c0b88 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,11 @@ +#include +#include +#include + +void setup() { + // put your setup code here, to run once: +} + +void loop() { + // put your main code here, to run repeatedly: +} \ No newline at end of file