dmelo / embed-files
本软件包最新版本(0.1.3)没有提供许可信息。
0.1.3
2018-05-08 21:19 UTC
Requires
- php: ^7.0
This package is auto-updated.
Last update: 2024-09-08 06:42:40 UTC
README
准备要在Arduino和MBed OS设备上写入闪存的文件。
安装
composer require dmelo/embed-files
使用方法
Usage: ./vendor/bin/embed-files PLATFORM SOURCE_DIR OUTPUT_H
PLATFORM - Possible values are "arduino" and "mbedos"
SOURCE_DIR - Directory that contains all files to be encoded
OUTPUT_H - Output C header file name where the encoded failes will be stored
其中 SOURCE_DIR
是包含所有待编码文件的目录。目前,它不支持递归。而 OUTPUT_H
是包含文件的输出C头文件,文件以二进制格式存储。
如果 SOURCE_DIR
包含名为 jquery.min.js
的文件,则该文件将在名为 JQUERY_MIN_JS
的变量中可用。
访问Arduino和ESP8266上的字符串
由于Arduino/ESP8266闪存只能以32位块的形式读取。您需要小心访问这些数据。有关详细信息,请参阅 http://arduino-esp8266.readthedocs.io/en/latest/PROGMEM.html。