Я новичек в ардуино, еще лет 10 назад пытался что то сделать, но толком не понимал как это работает, забрасывал, спустя какое то время опять пытался, опять не получалось. Но сейчас немного подразобрался, что такое библиотеки, команды и тд)) И решил сделать себе таймер для бани (чтоб отсчитывало время как захожишь в баню, не знаю зачем, но захотелось) Решил сделать самодельный семисегментный индикатор. Как самое простое как мне казалось решение))) Сначала думал мудрить с светодиодами 3-5мм обычными, потом с кусками ленты светодиодной, но там нужно было бы куча транзисторов и сдвиговые регистры итд. Потом глаз пал на адресную ленту. Взял самую "редкую" 30 светодиодов на метр, есть СО2 лазерный станок, сделал "корпус", с помощью библитеки Гайвера собрал это все воедино, методом проб и ошибок за пару вечеров под пенное стряпал скетч "как мог", но понимаю что это далеко от правильного написания кода + если понадобится дополнить его возможно когда то не хватит памяти..... Направьте пожалуйста в нужную сторону, как правильно это должно быть. 1 вопрос, не смог никак "зажигать" несколько светодиодов не по порядку (заливка не подходит) второе по таймеру и секундам... километр кода в общем который скорее всего можно вместить в 50 строк.... Кому интересно, могу выложить макеты корпуса для лазерной резки, и что в итоге получилось...
вот мой скетч:
#define STRIP_PIN_LEFT 5 // пин ленты
#define NUMLEDS_LEFT 25 // кол-во светодиодов
#define STRIP_PIN_RIGHT 6 // пин ленты
#define NUMLEDS_RIGHT 25 // кол-во светодиодов
#define COLOR_DEBTH 1
#include <microLED.h> // подключаем библу
microLED<NUMLEDS_LEFT, STRIP_PIN_LEFT, MLED_NO_CLOCK, LED_WS2812, ORDER_GRB, CLI_AVER, SAVE_MILLIS> strip;
microLED<NUMLEDS_RIGHT, STRIP_PIN_RIGHT, MLED_NO_CLOCK, LED_WS2812, ORDER_GRB, CLI_AVER, SAVE_MILLIS> strip2;
unsigned long time0, time1, time2, timelftdot, timergtdot, time0r;
byte s, m, sr, mr;
int lftclr, rgtclr;
bool sleft, sright;
#include <EncButton.h>
EncButton<EB_TICK, 4> btnleft(INPUT);
EncButton<EB_TICK, 3> btnright(INPUT);
void setup() {
// Serial.begin(9600);
// Serial.setTimeout(300);
strip.setBrightness(200);
strip.clear();
strip.show();
strip2.setBrightness(200);
strip2.clear();
strip2.show();
delay(100);
time0 = 0;
time1 = 0;
sleft = 0;
sright = 0;
lftclr = 255;
rgtclr = 1275;
}
void loop() {
if(millis() - time1 > 50){
time1 = millis();
strip2.show();
strip.show();
btnleft.tick();
btnright.tick();
//Serial.println(btnleft.state());
//Serial.println(lftclr);
}
if (btnright.click()) {
sright = true;
sr = 0;
mr = 0;
}
if (btnleft.click()) {
sleft = true;
s = 0;
m = 0;
}
if (btnleft.held()){
lftclr += 255;
}
if (lftclr >= 1530 ) {
lftclr = 0;
}
if (btnright.held()){
rgtclr += 255;
}
if (rgtclr >= 1530 ) {
rgtclr = 0;
}
if (sleft == true) {
timerleft();
}
if (sright == true) {
timerright();
}
//
if (s == 1) {
secOne();
}
if (s == 2) {
secTwo();
}
if (s == 3) {
secThree();
}
if (s == 4) {
secFour();
}
if (s == 5) {
secFive();
}
if (s == 6) {
secSix();
}
if (s == 7) {
secSeven();
}
if (s == 8) {
secEight();
}
if (s == 9) {
secNine();
}
if (s == 10) {
secDOne();
secZero();
}
if (s == 11) {
secDOne();
secOne();
}
if (s == 12) {
secDOne();
secTwo();
}
if (s == 13) {
secDOne();
secThree();
}
if (s == 14) {
secDOne();
secFour();
}
if (s == 15) {
secDOne();
secFive();
}
if (s == 16) {
secDOne();
secSix();
}
if (s == 17) {
secDOne();
secSeven();
}
if (s == 18) {
secDOne();
secEight();
}
if (s == 19) {
secDOne();
secNine();
}
if (s == 20) {
secDTwo();
secZero();
}
if (s == 21) {
secDTwo();
secOne();
}
if (s == 22) {
secDTwo();
secTwo();
}
if (s == 23) {
secDTwo();
secThree();
}
if (s == 24) {
secDTwo();
secFour();
}
if (s == 25) {
secDTwo();
secFive();
}
if (s == 26) {
secDTwo();
secSix();
}
if (s == 27) {
secDTwo();
secSeven();
}
if (s == 28) {
secDTwo();
secEight();
}
if (s == 29) {
secDTwo();
secNine();
}
if (s == 30) {
secDThree();
secZero();
}
if (s == 31) {
secDThree();
secOne();
}
if (s == 32) {
secDThree();
secTwo();
}
if (s == 33) {
secDThree();
secThree();
}
if (s == 34) {
secDThree();
secFour();
}
if (s == 35) {
secDThree();
secFive();
}
if (s == 36) {
secDThree();
secSix();
}
if (s == 37) {
secDThree();
secSeven();
}
if (s == 38) {
secDThree();
secEight();
}
if (s == 39) {
secDThree();
secNine();
}
if (s == 40) {
secDFour();
secZero();
}
if (s == 41) {
secDFour();
secOne();
}
if (s == 42) {
secDFour();
secTwo();
}
if (s == 43) {
secDFour();
secThree();
}
if (s == 44) {
secDFour();
secFour();
}
if (s == 45) {
secDFour();
secFive();
}
if (s == 46) {
secDFour();
secSix();
}
if (s == 47) {
secDFour();
secSeven();
}
if (s == 48) {
secDFour();
secEight();
}
if (s == 49) {
secDFour();
secNine();
}
if (s == 50) {
secDFive();
secZero();
}
if (s == 51) {
secDFive();
secOne();
}
if (s == 52) {
secDFive();
secTwo();
}
if (s == 53) {
secDFive();
secThree();
}
if (s == 54) {
secDFive();
secFour();
}
if (s == 55) {
secDFive();
secFive();
}
if (s == 56) {
secDFive();
secSix();
}
if (s == 57) {
secDFive();
secSeven();
}
if (s == 58) {
secDFive();
secEight();
}
if (s == 59) {
secDFive();
secNine();
}
///////
if (m == 1) {
mone();
}
if (m == 2) {
mtwo();
}
if (m == 3) {
mthree();
}
if (m == 4) {
mfour();
}
if (m == 5) {
mfive();
}
if (m == 6) {
msix();
}
if (m == 7) {
mseven();
}
if (m == 8) {
meight();
}
if (m == 9) {
mnine();
}
if (m == 10) {
mdone();
mzero();
}
if (m == 11) {
mdone();
mone();
}
if (m == 12) {
mtwo();
mdone();
}
if (m == 13) {
mthree();
mdone();
}
if (m == 14) {
mfour();
mdone();
}
if (m == 15) {
mfive();
mdone();
}
if (m == 16) {
msix();
mdone();
}
if (m == 17) {
mseven();
mdone();
}
if (m == 18) {
meight();
mdone();
}
if (m == 19) {
mnine();
mdone();
}
if (m >= 1 && s <=0) {
secDZero();
secZero();
}
if (m >= 1 && s <=9) {
secDZero();
}
////////
if (sr == 1) {
secrOne();
}
if (sr == 2) {
secrTwo();
}
if (sr == 3) {
secrThree();
}
if (sr == 4) {
secrFour();
}
if (sr == 5) {
secrFive();
}
if (sr == 6) {
secrSix();
}
if (sr == 7) {
secrSeven();
}
if (sr == 8) {
secrEight();
}
if (sr == 9) {
secrNine();
}
if (sr == 10) {
secrDOne();
secrZero();
}
if (sr == 11) {
secrDOne();
secrOne();
}
if (sr == 12) {
secrDOne();
secrTwo();
}
if (sr == 13) {
secrDOne();
secrThree();
}
if (sr == 14) {
secrDOne();
secrFour();
}
if (sr == 15) {
secrDOne();
secrFive();
}
if (sr == 16) {
secrDOne();
secrSix();
}
if (sr == 17) {
secrDOne();
secrSeven();
}
if (sr == 18) {
secrDOne();
secrEight();
}
if (sr == 19) {
secrDOne();
secrNine();
}
if (sr == 20) {
secrDTwo();
secrZero();
}
if (sr == 21) {
secrDTwo();
secrOne();
}
if (sr == 22) {
secrDTwo();
secrTwo();
}
if (sr == 23) {
secrDTwo();
secrThree();
}
if (sr == 24) {
secrDTwo();
secrFour();
}
if (sr == 25) {
secrDTwo();
secrFive();
}
if (sr == 26) {
secrDTwo();
secrSix();
}
if (sr == 27) {
secrDTwo();
secrSeven();
}
if (sr == 28) {
secrDTwo();
secrEight();
}
if (sr == 29) {
secrDTwo();
secrNine();
}
if (sr == 30) {
secrDThree();
secrZero();
}
if (sr == 31) {
secrDThree();
secrOne();
}
if (sr == 32) {
secrDThree();
secrTwo();
}
if (sr == 33) {
secrDThree();
secrThree();
}
if (sr == 34) {
secrDThree();
secrFour();
}
if (sr == 35) {
secrDThree();
secrFive();
}
if (sr == 36) {
secrDThree();
secrSix();
}
if (sr == 37) {
secrDThree();
secrSeven();
}
if (sr == 38) {
secrDThree();
secrEight();
}
if (sr == 39) {
secrDThree();
secrNine();
}
if (sr == 40) {
secrDFour();
secrZero();
}
if (sr == 41) {
secrDFour();
secrOne();
}
if (sr == 42) {
secrDFour();
secrTwo();
}
if (sr == 43) {
secrDFour();
secrThree();
}
if (sr == 44) {
secrDFour();
secrFour();
}
if (sr == 45) {
secrDFour();
secrFive();
}
if (sr == 46) {
secrDFour();
secrSix();
}
if (sr == 47) {
secrDFour();
secrSeven();
}
if (sr == 48) {
secrDFour();
secrEight();
}
if (sr == 49) {
secrDFour();
secrNine();
}
if (sr == 50) {
secrDFive();
secrZero();
}
if (sr == 51) {
secrDFive();
secrOne();
}
if (sr == 52) {
secrDFive();
secrTwo();
}
if (sr == 53) {
secrDFive();
secrThree();
}
if (sr == 54) {
secrDFive();
secrFour();
}
if (sr == 55) {
secrDFive();
secrFive();
}
if (sr == 56) {
secrDFive();
secrSix();
}
if (sr == 57) {
secrDFive();
secrSeven();
}
if (sr == 58) {
secrDFive();
secrEight();
}
if (sr == 59) {
secrDFive();
secrNine();
}
///////
if (mr == 1) {
mrone();
}
if (mr == 2) {
mrtwo();
}
if (mr == 3) {
mrthree();
}
if (mr == 4) {
mrfour();
}
if (mr == 5) {
mrfive();
}
if (mr == 6) {
mrsix();
}
if (mr == 7) {
mrseven();
}
if (mr == 8) {
mreight();
}
if (mr == 9) {
mrnine();
}
if (mr == 10) {
mrdone();
mrzero();
}
if (mr == 11) {
mrdone();
mrone();
}
if (mr == 12) {
mrtwo();
mrdone();
}
if (mr == 13) {
mrthree();
mrdone();
}
if (mr == 14) {
mrfour();
mrdone();
}
if (mr == 15) {
mrfive();
mrdone();
}
if (mr == 16) {
mrsix();
mrdone();
}
if (mr == 17) {
mrseven();
mrdone();
}
if (mr == 18) {
mreight();
mrdone();
}
if (mr == 19) {
mrnine();
mrdone();
}
if (mr >= 1 && sr <=0) {
secrDZero();
secrZero();
}
if (mr >= 1 && sr <=9) {
secrDZero();
}
////////
if(millis() - timelftdot > 500){
timelftdot = millis();
strip.set(9, mWheel(lftclr));
strip.set(10, mWheel(lftclr));
}
if(millis() - timergtdot > 500){
timergtdot = millis();
strip2.set(9, mWheel(rgtclr));
strip2.set(10, mWheel(rgtclr));
}
}
void timerleft() {
if(millis() - time0 > 1000){
time0 = millis();
strip.clear();
++s; // отсчет 1 с
}
if(s > 59){
s = 0;
++m; // отсчет 1 мин
}
if(m > 20){
m = 0;
}
}
void secOne() {
strip.set(21, mWheel(lftclr));
strip.set(22, mWheel(lftclr));
}
void secTwo() {
strip.set(19, mWheel(lftclr));
strip.set(20, mWheel(lftclr));
strip.set(22, mWheel(lftclr));
strip.set(23, mWheel(lftclr));
strip.set(24, mWheel(lftclr));
}
void secThree() {
strip.set(22, mWheel(lftclr));
strip.set(23, mWheel(lftclr));
strip.set(24, mWheel(lftclr));
strip.set(21, mWheel(lftclr));
strip.set(20, mWheel(lftclr));
}
void secFour() {
strip.set(18, mWheel(lftclr));
strip.set(24, mWheel(lftclr));
strip.set(22, mWheel(lftclr));
strip.set(21, mWheel(lftclr));
}
void secFive() {
strip.set(23, mWheel(lftclr));
strip.set(18, mWheel(lftclr));
strip.set(24, mWheel(lftclr));
strip.set(21, mWheel(lftclr));
strip.set(20, mWheel(lftclr));
}
void secSix() {
strip.set(23, mWheel(lftclr));
strip.set(18, mWheel(lftclr));
strip.set(19, mWheel(lftclr));
strip.set(20, mWheel(lftclr));
strip.set(21, mWheel(lftclr));
strip.set(24, mWheel(lftclr));
}
void secSeven() {
strip.set(23, mWheel(lftclr));
strip.set(22, mWheel(lftclr));
strip.set(21, mWheel(lftclr));
}
void secEight() {
strip.set(18, mWheel(lftclr));
strip.set(19, mWheel(lftclr));
strip.set(20, mWheel(lftclr));
strip.set(21, mWheel(lftclr));
strip.set(22, mWheel(lftclr));
strip.set(23, mWheel(lftclr));
strip.set(24, mWheel(lftclr));
}
void secNine() {
strip.set(18, mWheel(lftclr));
strip.set(20, mWheel(lftclr));
strip.set(21, mWheel(lftclr));
strip.set(22, mWheel(lftclr));
strip.set(23, mWheel(lftclr));
strip.set(24, mWheel(lftclr));
}
void secZero() {
strip.set(18, mWheel(lftclr));
strip.set(19, mWheel(lftclr));
strip.set(20, mWheel(lftclr));
strip.set(21, mWheel(lftclr));
strip.set(22, mWheel(lftclr));
strip.set(23, mWheel(lftclr));
}
void secDOne() {
strip.set(14, mWheel(lftclr));
strip.set(15, mWheel(lftclr));
}
void secDTwo() {
strip.set(13, mWheel(lftclr));
strip.set(14, mWheel(lftclr));
strip.set(17, mWheel(lftclr));
strip.set(11, mWheel(lftclr));
strip.set(16, mWheel(lftclr));
}
void secDThree() {
strip.set(13, mWheel(lftclr));
strip.set(14, mWheel(lftclr));
strip.set(17, mWheel(lftclr));
strip.set(15, mWheel(lftclr));
strip.set(16, mWheel(lftclr));
}
void secDFour() {
strip.set(12, mWheel(lftclr));
strip.set(14, mWheel(lftclr));
strip.set(17, mWheel(lftclr));
strip.set(15, mWheel(lftclr));
}
void secDFive() {
strip.set(13, mWheel(lftclr));
strip.set(12, mWheel(lftclr));
strip.set(17, mWheel(lftclr));
strip.set(15, mWheel(lftclr));
strip.set(16, mWheel(lftclr));
}
void secDSix() {
strip.set(13, mWheel(lftclr));
strip.set(12, mWheel(lftclr));
strip.set(17, mWheel(lftclr));
strip.set(15, mWheel(lftclr));
strip.set(11, mWheel(lftclr));
strip.set(16, mWheel(lftclr));
}
void secDSeven() {
strip.set(13, mWheel(lftclr));
strip.set(14, mWheel(lftclr));
strip.set(15, mWheel(lftclr));
}
void secDEight() {
strip.set(12, mWheel(lftclr));
strip.set(13, mWheel(lftclr));
strip.set(14, mWheel(lftclr));
strip.set(17, mWheel(lftclr));
strip.set(11, mWheel(lftclr));
strip.set(15, mWheel(lftclr));
strip.set(16, mWheel(lftclr));
}
void secDNine() {
strip.set(12, mWheel(lftclr));
strip.set(13, mWheel(lftclr));
strip.set(14, mWheel(lftclr));
strip.set(17, mWheel(lftclr));
strip.set(15, mWheel(lftclr));
strip.set(16, mWheel(lftclr));
}
void secDZero() {
strip.set(12, mWheel(lftclr));
strip.set(11, mWheel(lftclr));
strip.set(13, mWheel(lftclr));
strip.set(14, mWheel(lftclr));
strip.set(15, mWheel(lftclr));
strip.set(16, mWheel(lftclr));
}
void mone() {
strip.set(6, mWheel(lftclr));
strip.set(5, mWheel(lftclr));
}
void mtwo() {
strip.set(7, mWheel(lftclr));
strip.set(2, mWheel(lftclr));
strip.set(8, mWheel(lftclr));
strip.set(5, mWheel(lftclr));
strip.set(4, mWheel(lftclr));
}
void mthree() {
strip.set(7, mWheel(lftclr));
strip.set(6, mWheel(lftclr));
strip.set(8, mWheel(lftclr));
strip.set(5, mWheel(lftclr));
strip.set(4, mWheel(lftclr));
}
void mfour() {
strip.set(5, mWheel(lftclr));
strip.set(6, mWheel(lftclr));
strip.set(8, mWheel(lftclr));
strip.set(3, mWheel(lftclr));
}
void mfive() {
strip.set(7, mWheel(lftclr));
strip.set(6, mWheel(lftclr));
strip.set(8, mWheel(lftclr));
strip.set(3, mWheel(lftclr));
strip.set(4, mWheel(lftclr));
}
void msix() {
strip.set(6, mWheel(lftclr));
strip.set(8, mWheel(lftclr));
strip.set(7, mWheel(lftclr));
strip.set(2, mWheel(lftclr));
strip.set(3, mWheel(lftclr));
strip.set(4, mWheel(lftclr));
}
void mseven() {
strip.set(6, mWheel(lftclr));
strip.set(5, mWheel(lftclr));
strip.set(4, mWheel(lftclr));
}
void meight() {
strip.set(8, mWheel(lftclr));
strip.set(7, mWheel(lftclr));
strip.set(6, mWheel(lftclr));
strip.set(5, mWheel(lftclr));
strip.set(4, mWheel(lftclr));
strip.set(3, mWheel(lftclr));
strip.set(2, mWheel(lftclr));
}
void mnine() {
strip.set(8, mWheel(lftclr));
strip.set(3, mWheel(lftclr));
strip.set(4, mWheel(lftclr));
strip.set(5, mWheel(lftclr));
strip.set(6, mWheel(lftclr));
strip.set(7, mWheel(lftclr));
}
void mzero() {
strip.set(7, mWheel(lftclr));
strip.set(6, mWheel(lftclr));
strip.set(5, mWheel(lftclr));
strip.set(4, mWheel(lftclr));
strip.set(3, mWheel(lftclr));
strip.set(2, mWheel(lftclr));
}
void mdone() {
strip.set(0, mWheel(lftclr));
strip.set(1, mWheel(lftclr));
}
void timerright() {
if(millis() - time0r > 1000){
time0r = millis();
strip2.clear();
++sr; // отсчет 1 с
}
if(sr > 59){
sr = 0;
++mr; // отсчет 1 мин
}
if(mr > 20){
mr = 0;
}
}
void secrOne() {
strip2.set(21, mWheel(rgtclr));
strip2.set(22, mWheel(rgtclr));
}
void secrTwo() {
strip2.set(19, mWheel(rgtclr));
strip2.set(20, mWheel(rgtclr));
strip2.set(22, mWheel(rgtclr));
strip2.set(23, mWheel(rgtclr));
strip2.set(24, mWheel(rgtclr));
}
void secrThree() {
strip2.set(22, mWheel(rgtclr));
strip2.set(23, mWheel(rgtclr));
strip2.set(24, mWheel(rgtclr));
strip2.set(21, mWheel(rgtclr));
strip2.set(20, mWheel(rgtclr));
}
void secrFour() {
strip2.set(18, mWheel(rgtclr));
strip2.set(24, mWheel(rgtclr));
strip2.set(22, mWheel(rgtclr));
strip2.set(21, mWheel(rgtclr));
}
void secrFive() {
strip2.set(23, mWheel(rgtclr));
strip2.set(18, mWheel(rgtclr));
strip2.set(24, mWheel(rgtclr));
strip2.set(21, mWheel(rgtclr));
strip2.set(20, mWheel(rgtclr));
}
void secrSix() {
strip2.set(23, mWheel(rgtclr));
strip2.set(18, mWheel(rgtclr));
strip2.set(19, mWheel(rgtclr));
strip2.set(20, mWheel(rgtclr));
strip2.set(21, mWheel(rgtclr));
strip2.set(24, mWheel(rgtclr));
}
void secrSeven() {
strip2.set(23, mWheel(rgtclr));
strip2.set(22, mWheel(rgtclr));
strip2.set(21, mWheel(rgtclr));
}
void secrEight() {
strip2.set(18, mWheel(rgtclr));
strip2.set(19, mWheel(rgtclr));
strip2.set(20, mWheel(rgtclr));
strip2.set(21, mWheel(rgtclr));
strip2.set(22, mWheel(rgtclr));
strip2.set(23, mWheel(rgtclr));
strip2.set(24, mWheel(rgtclr));
}
void secrNine() {
strip2.set(18, mWheel(rgtclr));
strip2.set(20, mWheel(rgtclr));
strip2.set(21, mWheel(rgtclr));
strip2.set(22, mWheel(rgtclr));
strip2.set(23, mWheel(rgtclr));
strip2.set(24, mWheel(rgtclr));
}
void secrZero() {
strip2.set(18, mWheel(rgtclr));
strip2.set(19, mWheel(rgtclr));
strip2.set(20, mWheel(rgtclr));
strip2.set(21, mWheel(rgtclr));
strip2.set(22, mWheel(rgtclr));
strip2.set(23, mWheel(rgtclr));
}
void secrDOne() {
strip2.set(14, mWheel(rgtclr));
strip2.set(15, mWheel(rgtclr));
}
void secrDTwo() {
strip2.set(13, mWheel(rgtclr));
strip2.set(14, mWheel(rgtclr));
strip2.set(17, mWheel(rgtclr));
strip2.set(11, mWheel(rgtclr));
strip2.set(16, mWheel(rgtclr));
}
void secrDThree() {
strip2.set(13, mWheel(rgtclr));
strip2.set(14, mWheel(rgtclr));
strip2.set(17, mWheel(rgtclr));
strip2.set(15, mWheel(rgtclr));
strip2.set(16, mWheel(rgtclr));
}
void secrDFour() {
strip2.set(12, mWheel(rgtclr));
strip2.set(14, mWheel(rgtclr));
strip2.set(17, mWheel(rgtclr));
strip2.set(15, mWheel(rgtclr));
}
void secrDFive() {
strip2.set(13, mWheel(rgtclr));
strip2.set(12, mWheel(rgtclr));
strip2.set(17, mWheel(rgtclr));
strip2.set(15, mWheel(rgtclr));
strip2.set(16, mWheel(rgtclr));
}
void secrDSix() {
strip2.set(13, mWheel(rgtclr));
strip2.set(12, mWheel(rgtclr));
strip2.set(17, mWheel(rgtclr));
strip2.set(15, mWheel(rgtclr));
strip2.set(11, mWheel(rgtclr));
strip2.set(16, mWheel(rgtclr));
}
void secrDSeven() {
strip2.set(13, mWheel(rgtclr));
strip2.set(14, mWheel(rgtclr));
strip2.set(15, mWheel(rgtclr));
}
void secrDEight() {
strip2.set(12, mWheel(rgtclr));
strip2.set(13, mWheel(rgtclr));
strip2.set(14, mWheel(rgtclr));
strip2.set(17, mWheel(rgtclr));
strip2.set(11, mWheel(rgtclr));
strip2.set(15, mWheel(rgtclr));
strip2.set(16, mWheel(rgtclr));
}
void secrDNine() {
strip2.set(12, mWheel(rgtclr));
strip2.set(13, mWheel(rgtclr));
strip2.set(14, mWheel(rgtclr));
strip2.set(17, mWheel(rgtclr));
strip2.set(15, mWheel(rgtclr));
strip2.set(16, mWheel(rgtclr));
}
void secrDZero() {
strip2.set(12, mWheel(rgtclr));
strip2.set(11, mWheel(rgtclr));
strip2.set(13, mWheel(rgtclr));
strip2.set(14, mWheel(rgtclr));
strip2.set(15, mWheel(rgtclr));
strip2.set(16, mWheel(rgtclr));
}
void mrone() {
strip2.set(6, mWheel(rgtclr));
strip2.set(5, mWheel(rgtclr));
}
void mrtwo() {
strip2.set(7, mWheel(rgtclr));
strip2.set(2, mWheel(rgtclr));
strip2.set(8, mWheel(rgtclr));
strip2.set(5, mWheel(rgtclr));
strip2.set(4, mWheel(rgtclr));
}
void mrthree() {
strip2.set(7, mWheel(rgtclr));
strip2.set(6, mWheel(rgtclr));
strip2.set(8, mWheel(rgtclr));
strip2.set(5, mWheel(rgtclr));
strip2.set(4, mWheel(rgtclr));
}
void mrfour() {
strip2.set(5, mWheel(rgtclr));
strip2.set(6, mWheel(rgtclr));
strip2.set(8, mWheel(rgtclr));
strip2.set(3, mWheel(rgtclr));
}
void mrfive() {
strip2.set(7, mWheel(rgtclr));
strip2.set(6, mWheel(rgtclr));
strip2.set(8, mWheel(rgtclr));
strip2.set(3, mWheel(rgtclr));
strip2.set(4, mWheel(rgtclr));
}
void mrsix() {
strip2.set(6, mWheel(rgtclr));
strip2.set(8, mWheel(rgtclr));
strip2.set(7, mWheel(rgtclr));
strip2.set(2, mWheel(rgtclr));
strip2.set(3, mWheel(rgtclr));
strip2.set(4, mWheel(rgtclr));
}
void mrseven() {
strip2.set(6, mWheel(rgtclr));
strip2.set(5, mWheel(rgtclr));
strip2.set(4, mWheel(rgtclr));
}
void mreight() {
strip2.set(8, mWheel(rgtclr));
strip2.set(7, mWheel(rgtclr));
strip2.set(6, mWheel(rgtclr));
strip2.set(5, mWheel(rgtclr));
strip2.set(4, mWheel(rgtclr));
strip2.set(3, mWheel(rgtclr));
strip2.set(2, mWheel(rgtclr));
}
void mrnine() {
strip2.set(8, mWheel(rgtclr));
strip2.set(3, mWheel(rgtclr));
strip2.set(4, mWheel(rgtclr));
strip2.set(5, mWheel(rgtclr));
strip2.set(6, mWheel(rgtclr));
strip2.set(7, mWheel(rgtclr));
}
void mrzero() {
strip2.set(7, mWheel(rgtclr));
strip2.set(6, mWheel(rgtclr));
strip2.set(5, mWheel(rgtclr));
strip2.set(4, mWheel(rgtclr));
strip2.set(3, mWheel(rgtclr));
strip2.set(2, mWheel(rgtclr));
}
void mrdone() {
strip2.set(0, mWheel(rgtclr));
strip2.set(1, mWheel(rgtclr));
}