Browse Source

Split data.h content in 1k chunks since Arduino IDE chokes at long lines

fastled
Xose Pérez 7 years ago
parent
commit
13c53c7c6d
2 changed files with 63 additions and 2 deletions
  1. +61
    -1
      code/espurna/config/data.h
  2. +2
    -1
      code/gulpfile.js

+ 61
- 1
code/espurna/config/data.h
File diff suppressed because it is too large
View File


+ 2
- 1
code/gulpfile.js View File

@ -68,11 +68,12 @@ gulp.task('buildfs_embed', ['buildfs_inline'], function() {
wstream.write('const uint8_t index_html_gz[] PROGMEM = {')
for (i=0; i<data.length; i++) {
if (i % 1000 == 0) wstream.write("\n");
wstream.write('0x' + ('00' + data[i].toString(16)).slice(-2));
if (i<data.length-1) wstream.write(',');
}
wstream.write('};\n')
wstream.write('\n};')
wstream.end();
});


Loading…
Cancel
Save