Skip to content

Commit a700a73

Browse files
committed
Latest version DIY firmware and instructions
1 parent eccf6d4 commit a700a73

58 files changed

Lines changed: 1282 additions & 7392 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
bleskomat.conf
1+
.pio/
File renamed without changes.
File renamed without changes.

Makefile

Lines changed: 12 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -21,57 +21,33 @@
2121
# $ make compile # compile the device firmware
2222
# $ make upload # compile then upload the device firmware
2323
# $ make monitor # start the serial monitor
24-
# $ make server # start an instance of the HTTP server
2524
#
2625

2726
## Variables
28-
DEVICE_DIR=./device
29-
SERVER_DIR=./server
30-
31-
CONFIG=$(SERVER)/config.json
32-
33-
## Targets
34-
#
35-
# The format goes:
36-
#
37-
# target: list of dependencies
38-
# commands to build target
39-
#
40-
# If something isn't re-compiling double-check the changed file is in the
41-
# target's dependencies list.
27+
DEVICE ?= /dev/ttyUSB0
28+
BAUDRATE ?= 115200
29+
PLATFORM=espressif32
4230

4331
## Phony targets - these are for when the target-side of a definition
44-
# (such as "install" below) isn't a file but instead a just label. Declaring
32+
# (such as "install" below) isn't a file but instead just a label. Declaring
4533
# it as phony ensures that it always run, even if a file by the same name
4634
# exists.
4735
.PHONY: install\
4836
compile\
4937
upload\
50-
monitor\
51-
server\
52-
signedLnurl
53-
54-
.SILENT: signedLnurl\
55-
config
38+
monitor
5639

5740
install:
58-
cd $(DEVICE_DIR) && platformio lib install
59-
cd $(SERVER_DIR) && npm install
41+
platformio lib install
42+
platformio platform install ${PLATFORM}
6043

6144
compile:
62-
cd $(DEVICE_DIR) && npm run compile:only
45+
platformio run
6346

6447
upload:
65-
cd $(DEVICE_DIR) && DEVICE=${DEVICE} npm run compile:upload
48+
sudo chown ${USER}:${USER} ${DEVICE}
49+
platformio run --upload-port ${DEVICE} --target upload
6650

6751
monitor:
68-
cd $(DEVICE_DIR) && DEVICE=${DEVICE} npm run monitor
69-
70-
server:
71-
cd $(SERVER_DIR) && npm start
72-
73-
config:
74-
cd $(DEVICE_DIR) && npm run --silent print:config
75-
76-
signedLnurl:
77-
cd $(SERVER_DIR) && npm run --silent generate:signedLnurl -- "${AMOUNT}"
52+
sudo chown ${USER}:${USER} ${DEVICE}
53+
platformio device monitor --baud ${BAUDRATE} --port ${DEVICE}

README.md

Lines changed: 162 additions & 285 deletions
Large diffs are not rendered by default.

device/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

device/package.json

Lines changed: 0 additions & 38 deletions
This file was deleted.

device/scripts/printConfig.js

Lines changed: 0 additions & 66 deletions
This file was deleted.

device/src/config.cpp

Lines changed: 0 additions & 101 deletions
This file was deleted.

0 commit comments

Comments
 (0)