macetech / fastled-xy-map-generator Goto Github PK
View Code? Open in Web Editor NEWAutomatically generates XYmap function for irregular/gapped LED arrays.
Automatically generates XYmap function for irregular/gapped LED arrays.
Hi,
Loving your code.
Any chance of an update with a 'clear all LEDs' button to clear the matrix?
I have a 80x80 grid, and only need 91 LEDs highlighting.
Thanks,
Paul
I have 3 8x8 matrixes which I would like to put together, could you set the starting point to 65 - 128?
hello sir,
i am trying the xy map but not getting the write code
// Params for width and height
const uint8_t kMatrixWidth = 24;
const uint8_t kMatrixHeight = 8;
#define NUM_LEDS (kMatrixWidth * kMatrixHeight)
CRGB leds[ NUM_LEDS ];
#define LAST_VISIBLE_LED 121
uint8_t XY (uint8_t x, uint8_t y) {
// any out of bounds address maps to the first hidden pixel
if ( (x >= kMatrixWidth) || (y >= kMatrixHeight) ) {
return (LAST_VISIBLE_LED + 1);
}
const uint8_t XYTable[] = {
122, 126, 127, 132, 133, 138, 139, 144, 145, 150, 151, 156, 157, 162, 163, 168, 169, 174, 175, 180, 181, 186, 187, 191,
0, 10, 11, 20, 21, 30, 31, 40, 41, 50, 51, 60, 61, 70, 71, 80, 81, 90, 91, 100, 101, 110, 111, 121,
1, 125, 12, 19, 22, 137, 32, 39, 42, 49, 152, 59, 62, 69, 72, 167, 82, 89, 92, 99, 182, 109, 112, 120,
2, 9, 128, 18, 134, 29, 140, 38, 43, 149, 52, 155, 63, 68, 164, 79, 170, 88, 93, 179, 102, 185, 113, 119,
3, 8, 13, 131, 23, 28, 33, 143, 146, 48, 53, 58, 158, 161, 73, 78, 83, 173, 176, 98, 103, 108, 188, 118,
4, 7, 14, 17, 24, 27, 34, 37, 44, 47, 54, 57, 64, 67, 74, 77, 84, 87, 94, 97, 104, 107, 114, 117,
5, 6, 15, 16, 25, 26, 35, 36, 45, 46, 55, 56, 65, 66, 75, 76, 85, 86, 95, 96, 105, 106, 115, 116,
123, 124, 129, 130, 135, 136, 141, 142, 147, 148, 153, 154, 159, 160, 165, 166, 171, 172, 177, 178, 183, 184, 189, 190
};
uint8_t i = (y * kMatrixWidth) + x;
uint8_t j = XYTable[i];
return j;
}
After this i want to Scrolling effect of this xy map plz give me rest of code by which i can scroll this xy map
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.