Skip to content

Commit 08fcb90

Browse files
Import from ESP8266 LittleFS Plugin
0 parents  commit 08fcb90

File tree

8 files changed

+759
-0
lines changed

8 files changed

+759
-0
lines changed

LICENSE.txt

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Arduino ESP8266 LittleFS Filesystem Uploader
2+
3+
Arduino plugin which packs sketch data folder into LittleFS filesystem image,
4+
and uploads the image to ESP8266 flash memory.
5+
<br>
6+
7+
## Installation
8+
- Make sure you use one of the supported versions of Arduino IDE and have ESP8266 core installed.
9+
- Download the tool archive from (https://github.com/earlephilhower/arduino-esp8266littlefs-plugin/releases).
10+
- In your Arduino sketchbook directory, create tools directory if it doesn't exist yet.
11+
- Unpack the tool into tools directory (the path will look like `<home_dir>/Arduino/tools/ESP8266LittleFS/tool/esp8266littlefs.jar)`.
12+
- Restart Arduino IDE.
13+
14+
On the OS X create the tools directory in ~/Documents/Arduino/ and unpack the files there
15+
16+
## Usage
17+
- Open a sketch (or create a new one and save it).
18+
- Go to sketch directory (choose Sketch > Show Sketch Folder).
19+
- Create a directory named `data` and any files you want in the file system there.
20+
- Make sure you have selected a board, port, and closed Serial Monitor.
21+
- Select *Tools > ESP8266 LittleFS Data Upload* menu item. This should start uploading the files into ESP8266 flash file system.
22+
When done, IDE status bar will display LittleFS Image Uploaded message. Might take a few minutes for large file system sizes.
23+
24+
## Screenshot
25+
26+
![Screenshot](screenshot.png)
27+
28+
## Credits and license
29+
30+
- Copyright (c) 2015 Hristo Gochkov (ficeto at ficeto dot com)
31+
- Licensed under GPL v2 ([text](LICENSE))
32+
- Modified by Earle F. Philhower, III for LittleFS use
33+
34+
## Issues and suggestions
35+
36+
File issues here on github, or ask your questions on the [esp8266.com forum](http://esp8266.com/arduino).
Binary file not shown.
Binary file not shown.
9.43 KB
Binary file not shown.

make.sh

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/usr/bin/env bash
2+
3+
if [[ -z "$INSTALLDIR" ]]; then
4+
INSTALLDIR="$HOME/Documents/Arduino"
5+
fi
6+
echo "INSTALLDIR: $INSTALLDIR"
7+
8+
pde_path=`find /usr/local/bin/arduino-1.8.1/ -name pde.jar`
9+
core_path=`find /usr/local/bin/arduino-1.8.1/ -name arduino-core.jar`
10+
lib_path=`find /usr/local/bin/arduino-1.8.1/ -name commons-codec-1.7.jar`
11+
if [[ -z "$core_path" || -z "$pde_path" ]]; then
12+
echo "Some java libraries have not been built yet (did you run ant build?)"
13+
return 1
14+
fi
15+
echo "pde_path: $pde_path"
16+
echo "core_path: $core_path"
17+
echo "lib_path: $lib_path"
18+
19+
set -e
20+
21+
mkdir -p bin
22+
javac -target 1.8 -source 1.8 -cp "$pde_path:$core_path:$lib_path" \
23+
-d bin src/PicoLittleFS.java
24+
25+
pushd bin
26+
mkdir -p $INSTALLDIR/tools
27+
rm -rf $INSTALLDIR/tools/PicoLittleFS
28+
mkdir -p $INSTALLDIR/tools/PicoLittleFS/tool
29+
zip -r $INSTALLDIR/tools/PicoLittleFS/tool/picolittlefs.jar *
30+
popd
31+
32+
dist=$PWD/dist
33+
rev=$(git describe --tags)
34+
mkdir -p $dist
35+
pushd $INSTALLDIR/tools
36+
rm -f $dist/*.zip
37+
zip -r $dist/PicoLittleFS-$rev.zip PicoLittleFS/
38+
popd

screenshot.png

20.6 KB
Loading

0 commit comments

Comments
 (0)