Well here is my Code Base without the Can I/O section:
C-3436.ino | C-3436.h |
/* #include "C3436.h" } void loop(){ for (byte hcount = 5; hcount < 10; hcount++) { //Get Channel info // to send data or not
// Tests and other things byte calc_F(){ byte calc_H(){ byte Ltest() { byte Htest() { |
/* // for print testing we must define TESTprint =1 // we need to list the digital input pins: // Pin defs // please note: arrays F[] & H[] are being indexed 0-5 int F[]= { 22, 23, 24, 25, 26 }; int H[]= { 27, 28, 29, 30, 31 }; int powerPin = 39; int frac[5]; int pwr, pwr0; int pins[] = {22, 23, 24, 25, 26, 27, 28, 29, 30, 31};
// I will do the convertions staticly now int lowBits[10][5]= {{1,1,0,1,0},{1,0,0,0,1},{0,1,0,0,0},{0,0,1,0,0},{0,0,0,1,0}, {1,0,0,0,0},{0,0,0,0,1},{0,1,0,0,1},{0,1,1,0,0},{0,0,1,1,0}}; byte Lcode []= { 26, 17, 8, 4, 2, 16, 1, 9, 12, 6 }; int highBits[20][5] = {{1,1,0,0,1},{1,1,0,0,0},{1,1,1,0,0},{1,0,0,0,1},{1,1,1,1,0}, {0,0,0,1,0},{0,1,1,1,1},{0,0,1,0,0},{1,0,1,1,1},{0,1,0,0,0}, {0,0,0,1,1},{1,0,0,0,0},{1,0,1,0,1},{0,0,0,0,1},{0,0,1,1,0}, {0,1,0,1,1},{0,0,1,0,1},{0,0,1,1,0},{1,0,0,1,0},{0,1,1,0,0}}; byte Hcode[][2]= {{13, 0}, {20, 108},{28, 109},{17, 110},{30,111}, {2, 112},{15, 113},{4, 114},{23, 115},{8, 116}, {3, 117},{16, 118},{17, 119},{1, 120},{6, 121}, {11,122},{5, 123},{6, 124},{18, 125},{12, 126}}; byte chanHigh, chanLow; |