2020-02-11 20:49:14 +00:00
|
|
|
# paperdash-display
|
|
|
|
|
2020-11-14 17:35:45 +00:00
|
|
|
## build for deployment
|
|
|
|
```properties
|
|
|
|
pio run --environment lolin32
|
|
|
|
platformio run --target buildfs
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2020-02-11 20:49:14 +00:00
|
|
|
## compile and upload new firmware
|
|
|
|
```properties
|
|
|
|
platformio run --target upload
|
|
|
|
```
|
|
|
|
|
|
|
|
## app development
|
|
|
|
```properties
|
|
|
|
# build new dist files
|
|
|
|
yarn --cwd app build
|
|
|
|
|
|
|
|
# upload to device filesystem
|
|
|
|
platformio run --target uploadfs
|
2020-02-29 18:46:05 +00:00
|
|
|
|
|
|
|
# send a picture to display over json
|
2020-05-20 10:52:07 +00:00
|
|
|
curl -F '=@test3.png;filename=dithering' http://192.168.178.62/api/face
|
|
|
|
|
|
|
|
# get current picture as bmp
|
|
|
|
curl http://192.168.178.62/current-image --output current.bmp
|
2020-02-29 18:46:05 +00:00
|
|
|
|
|
|
|
# erase flash memory
|
|
|
|
pio run --target erase
|
|
|
|
```
|
|
|
|
|
|
|
|
## access fs over http
|
|
|
|
|
|
|
|
> get photos from calendar face
|
2020-03-11 20:19:08 +00:00
|
|
|
http://192.168.178.65/fs/calendarPhoto.png
|