Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "HC4x4x4Cube.h"
- const PROGMEM unsigned int aExample[][4] = {
- {0x1000, 0x1000, 0x1000, 0x1000},
- {0x2000, 0x2000, 0x2000, 0x2000},
- {0x4000, 0x4000, 0x4000, 0x4000},
- {0x8000, 0x8000, 0x8000, 0x8000},
- {0x0800, 0x0800, 0x0800, 0x0800},
- {0x0400, 0x0400, 0x0400, 0x0400},
- {0x0200, 0x0200, 0x0200, 0x0200},
- {0x0100, 0x0100, 0x0100, 0x0100},
- {0x0010, 0x0010, 0x0010, 0x0010},
- {0x0020, 0x0020, 0x0020, 0x0020},
- {0x0040, 0x0040, 0x0040, 0x0040},
- {0x0080, 0x0080, 0x0080, 0x0080},
- {0x0008, 0x0008, 0x0008, 0x0008},
- {0x0004, 0x0004, 0x0004, 0x0004},
- {0x0002, 0x0002, 0x0002, 0x0002},
- {0x0001, 0x0001, 0x0001, 0x0001},
- {0x0001, 0x0001, 0x0002, 0x0002},
- {0x0001, 0x0002, 0x0004, 0x0008},
- {0x0003, 0x000C, 0x0000, 0x0000},
- {0x000F, 0x0000, 0x0000, 0x0000},
- {0x00F0, 0x0000, 0x0000, 0x0000},
- {0x0F00, 0x0000, 0x0000, 0x0000},
- {0xF000, 0x0000, 0x0000, 0x0000},
- {0x0000, 0xF000, 0x0000, 0x0000},
- {0x0000, 0x0F00, 0x0000, 0x0000},
- {0x0000, 0x00F0, 0x0000, 0x0000},
- {0x0000, 0x000F, 0x0000, 0x0000},
- {0x0000, 0x0000, 0x000F, 0x0000},
- {0x0000, 0x0000, 0x00F0, 0x0000},
- {0x0000, 0x0000, 0x0F00, 0x0000},
- {0x0000, 0x0000, 0xF000, 0x0000},
- {0x0000, 0x0000, 0x0000, 0xF000},
- {0x0000, 0x0000, 0x0000, 0x0F00},
- {0x0000, 0x0000, 0x0000, 0x00F0},
- {0x0000, 0x0000, 0x0000, 0x000F},
- {0x0000, 0x0000, 0x000C, 0x0003},
- {0x0008, 0x0004, 0x0002, 0x0001},
- {0x0002, 0x0002, 0x0001, 0x0001},
- {0x0001, 0x0001, 0x0001, 0x0001},
- {0x0010, 0x0010, 0x0010, 0x0010},
- {0x0100, 0x0100, 0x0100, 0x0100},
- };
- const _Pattern_info Example = {41,aExample[0]};
- #define SPEED 50
- void setup()
- {
- CubeInit();
- }
- void loop()
- {
- CubePlayPattern(Example, SPEED, 50);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement