Skip to content

Instantly share code, notes, and snippets.

@ElectricImpSampleCode
Last active November 26, 2019 14:55
Show Gist options
  • Save ElectricImpSampleCode/e565ed040a0a12e4990d to your computer and use it in GitHub Desktop.
Save ElectricImpSampleCode/e565ed040a0a12e4990d to your computer and use it in GitHub Desktop.
Squirrel array len() example
// Constants for the alphanumeric character set
static charset = [
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00], // Space - Ascii 32
[0x00,0x10,0x10,0x10,0x10,0x00,0x10,0x00], // !
[0x00,0x24,0x24,0x00,0x00,0x00,0x00,0x00], // "
...
[0xFF,0xFF,0xFF,0xFF,0x55,0xAA,0x55,0xAA],
[0xAA,0x55,0xAA,0x55,0xFF,0xFF,0xFF,0xFF],
[0xAA,0x55,0xAA,0x55,0xAA,0x55,0xAA,0x55] // Block Graphic 11
];
local numberOfChars = charset.len();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment