Flash variants
H1 doesn’t parse your script on the device itself — a script is compiled on your computer by the IDE into compact bytecode, and that bytecode is what actually gets written to flash. Because of that, script capacity scales almost directly with your script’s character count: most of a typical script is STRING/text data, stored at close to 1 byte per character, plus a small amount of overhead per non-text instruction (delays, loops, key combos, and so on).
H1’s onboard flash uses a standard SPI NOR flash chip with 24-bit addressing — the same addressing scheme shared across the common family of NOR flash chips from 128 KB up to 16 MB. The size of the flash chip populated on the board directly determines how large a script H1 can hold:
| Flash size | Approx. script capacity* |
|---|---|
| 128 KB | ~128,000 characters |
| 512 KB | ~512,000 characters |
| 1 MB | ~1,000,000 characters |
| 4 MB | ~4,000,000 characters |
| 16 MB | ~16,000,000 characters |
* Approximate — actual capacity depends on how many DELAY / LOOP /
key-combo instructions your script uses, since those cost a few bytes each
rather than one.
The base H1 ships with onboard NOR flash only. A Pro version, currently in development, adds an SD card slot for even larger or swappable script storage — the footprint for an SD card reader already exists on the V1 PCB, but it’s disabled in firmware for the initial release to keep the base device simple and low-cost.