Skip to content

Port to Esp32 #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
src/ui-update.sh
data/static/log.htm
.pio
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json
.vscode/launch.json
.vscode/ipch
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,30 @@ In case you need a simple access control system to play with, ESPKey can do that
Have a look [over here](https://github.com/octosavvi/ESPKey/releases/latest) for the latest pre-built firmware and UI release.

### Build instructions
Open in Arduino IDE and click Verify (or Upload if connected to UART).
1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html)
2. Run these commands:

```shell
# Change to working directory
$ cd <path-to-workingdir>

# Build project
$ pio run

# Upload firmware
$ pio run --target upload

# Build specific environment
$ pio run -e esp12

# Upload firmware for the specific environment
$ pio run -e esp12 --target upload

# Clean build files
$ pio run --target clean
```

3. Launch html_src/publish.sh to generate ui-update.sh. When connected to ESPKey's web server, launch ui-update.sh to upload the files that make the web UI.

### Usage
Check out [this great documentation](https://redteamtools.com/espkey) put together by Babak of Red Team Tools.
Expand Down
32 changes: 32 additions & 0 deletions boards/ESP07-patched.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"build": {
"arduino": {
"ldscript": "eagle.flash.1m256.ld"
},
"core": "esp8266",
"extra_flags": "-DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_ESP07",
"f_cpu": "80000000L",
"f_flash": "40000000L",
"flash_mode": "qio",
"mcu": "esp8266",
"variant": "nodemcu"
},
"connectivity": [
"wifi"
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "Espressif ESP8266 ESP-07 1M",
"upload": {
"maximum_ram_size": 81920,
"maximum_size": 1048576,
"require_upload_port": true,
"resetmethod": "nodemcu",
"speed": 115200
},
"url": "http://www.esp8266.com/wiki/doku.php?id=esp8266-module-family",
"vendor": "Espressif"
}
Loading