arduino_sketch_builder 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -1
- data/lib/arduino_sketch_builder/arduino_cmake_build.rb +1 -1
- data/lib/arduino_sketch_builder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d600ee15f2408df5f6c32a72fa3130b9fa3b7e5b
|
4
|
+
data.tar.gz: f2903e1489eef91b0f5599395e6eea371da4c8c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8775a172a8c11e68d86baca3e7525d6bead6fc74822dddcca2e82b77cf1ed610fcbc82953e3845232f48bfdbfb8da9453d14929fa562ff35924f314b1806207e
|
7
|
+
data.tar.gz: 7dbc2627b9c6e45869084b42f0c07c81595050deccf229390203b7dc3c71448f48c4b9d1279fbd3f78415045c6b00388be38e8a3cef304f6103320b2e5500e12
|
data/README.md
CHANGED
@@ -111,6 +111,9 @@ You can also change them by setting ARDUINO_DEFAULT_BOARD and ARDUINO_DEFAULT_PO
|
|
111
111
|
# arduino_sketch_builder.message gives message such as error message in case of failure.
|
112
112
|
state = arduino_sketch_builder.build_and_upload
|
113
113
|
|
114
|
+
# In the case of error, resetting by cleaning up build directory and setting the state to :initial
|
115
|
+
arduino_sketch_builder.reset
|
116
|
+
|
114
117
|
### Example of code with more control
|
115
118
|
|
116
119
|
#### Setting up the directory structure - like the one above under cmake directory
|
@@ -174,7 +177,11 @@ If Arduino board type and port are different from the default,
|
|
174
177
|
# Success: state == :make_upload_complete
|
175
178
|
# Failure: state == :make_upload_incomplete
|
176
179
|
# arduino_cmake_build.message gives message such as error message in case of failure.
|
177
|
-
state = arduino_cmake_build.make_upload
|
180
|
+
state = arduino_cmake_build.make_upload
|
181
|
+
|
182
|
+
##### In the case of error, resetting by cleaning up build directory and setting the state to :initial
|
183
|
+
|
184
|
+
arduino_cmake_build.reset
|
178
185
|
|
179
186
|
## TODOS
|
180
187
|
|