Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __ by__Murdy __ ________
- / \ / | / | / |
- ██ \ /██ | ______ ______ ______ ██ |____ ████████______ ______ _______ ______ ______
- ███ \ /███ |/ \ / \ / \██ \ ██ |/ \/ \ / |/ \ / \
- ████ /████ /██████ /██████ /██████ ███████ | ██ /██████ ██████ /███████//██████ /██████ |
- ██ ██ ██/██ ██ | ██ ██ | ██/██ | ██ ██ | ██ | ██ ██ | ██// ██ ██ | ██ ██ ██ | ██/
- ██ |███/ ██ ██ \__██ ██ | ██ |__██ ██ | ██ | ██ ██ | /███████ ██ \_____████████/██ |
- ██ | █/ ██ ██ ██/██ | ██ ██/██ | ██ | ██ ██ | ██ ██ ██ ██ ██ |
- ██/ ██/ ██████/ ██/ ███████/ ██/ ██/ ██/██/ ███████/ ███████/ ███████/██/
- ``'-.,_,.-'``'-.,_,.='``'-.,_,██ |`'-.,_,.='``'-.,_,.-'``'-.
- ='``'-.,_,.-'``'-.,_,.='``'-.,██ |'``'-.,_,.='``'-.,_,.='``'-.,_(-O-)
- ``'-.,_,.-'``'-.,_,.='``'-.,_,██/``'-.,_,.='``'-.,_,.='``'-.,_,.-'`
- ///////////////////////////////////////CREDIT://Mike//Bro//St//////////////////////////////////////////////////////////
- //TO INSTALL: //
- //**Add this line under // Starting Variables in the NEO.ino file around line 123 //
- // volatile int TracerCount; //
- // //
- //**Replace the MorphNonZero, MorphZero, and PRIME_MORPH sections only in Morphed_Plus.ino with the code below //
- //This will affect the Extra2 parameter/value in the Master Builder //
- //The value decreases the frequency of how my tracer dots there are, starting with 1(higher for less) (0 off) //
- // //
- //::Mike Bro St's Rainbow/Candy Tracer:: //
- //For color's in the mode use the following on the dim color palette: //
- //4,1, 17,0, 30,0, 31,0, 32,0, (Ghost Rainbow Morph) //
- //Set the Master Builder prime to://////////////////////////// //
- //Prime: 3////ColorTime: 2////BlankTime: 0////E1: 0////E2: 4// //
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- REPLACE CODE STARTS HERE
- I I I
- V V V
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- void MorphNonZero(byte xds)
- {// void MorphAfterZero
- byte xdata = pgm_read_byte (&MorphingPattern[xds]);
- byte yss=0;
- while (yss<7 && ToBorNotToB)
- {// for yss
- if (xdata & (1<<yss))
- {
- osmPWMtimeless(CCR[VARIATION][color],CCG[VARIATION][color],CCB[VARIATION][color]);
- //PrintThis(0,0,1,0);// debug
- }
- else
- {
- osmPWMtimeless(CCR[VARIATION][color+1],CCG[VARIATION][color+1],CCB[VARIATION][color+1]);
- //PrintThis(0,1,0,0);// debug
- }
- yss++;
- }// rof yss
- //PrintThis(0,0,0,1);// debug
- }// diov MorphAfterZero
- /////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////
- void MorphZero(byte xds)
- {// void MorphAfterZero
- byte xdata = pgm_read_byte (&MorphingPattern[xds]);
- byte yss=0;
- while (yss<7 && ToBorNotToB)
- {// for yss
- if (xdata & (1<<yss))
- {
- osmPWMtimeless(CCR[VARIATION][color],CCG[VARIATION][color],CCB[VARIATION][color]);
- //PrintThis(0,0,1,0);// debug
- }
- else
- {
- if (Val2[VARIATION] > 0) {osmPWMtimeless(CCR[VARIATION][1],CCG[VARIATION][1],CCB[VARIATION][1]);}
- if (Val2[VARIATION] == 0) {osmPWMtimeless(CCR[VARIATION][0],CCG[VARIATION][0],CCB[VARIATION][0]);}
- //PrintThis(0,1,0,0);// debug
- }
- yss++;
- }// rof yss
- //PrintThis(0,0,0,1);// debug
- }// diov MorphAfterZero
- /////////////////////////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- ///// THIS IS A PRIME
- /////////////////////////////////////////////////////////////////////////////////////////////
- void PRIME_MORPH(int ColorTime, int BlankTime) //
- {// void osm_Morphed
- int ThisTime;
- TracerCount++;
- if ( TracerCount > Val2[VARIATION] )
- {
- osmPWMSCCxyz(CCR[VARIATION][0],CCG[VARIATION][0],CCB[VARIATION][0],CCS[VARIATION][0], 2); //
- osmPWMSCCxyz(0,0,0, 0, BlankTime);
- TracerCount = 0;
- }
- if (color == 0 && Val2[VARIATION] > 0 ) {color++;}
- ColorTime = ColorTime * 1;
- if (color != ColorMaxCount[VARIATION])
- {// if
- xds=0;
- while (xds<9 && ToBorNotToB)
- {// while xds
- ThisTime = ColorTime;
- while (ThisTime > 0 && ToBorNotToB)
- { // while ThisTime
- MorphNonZero(xds);
- ThisTime--;
- mmaSensor(PMMAselect, PmmAxis, PAccelSensitivity);
- }// while ThisTime
- xds++;
- osmPWMSCCxyz(0,0,0, 0, BlankTime);
- }// elihw xds
- }// fi != ColorMaxCount[VARIATION]
- else
- {// else
- xds=0;
- while (xds<9 && ToBorNotToB)
- {// while xds
- ThisTime = ColorTime;
- while (ThisTime > 0 && ToBorNotToB)
- { // while ThisTime
- MorphZero(xds);
- ThisTime--;
- mmaSensor(PMMAselect, PmmAxis, PAccelSensitivity);
- }// while ThisTime
- xds++;
- osmPWMSCCxyz(0,0,0, 0, BlankTime);
- }// elihw xds
- }// esle
- color++;
- }// diov osm_Morphed
- //////////////////////////////////////////////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement