This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void ofApp::stringtocolor(string convertstring){ | |
int hash = std::hash<std::string>()(convertstring); | |
int r = (hash & 0xFF0000) >> 16; | |
int g = (hash & 0x00FF00) >> 8; | |
int b = hash & 0x0000FF; | |
cout << r << "| "<< g << "| " << b << endl; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//libs | |
#include <SPI.h> | |
#include <SD.h> | |
//SD vars | |
File myFile; | |
//parse data vals | |
int dataarr[60] = {}; //array of parsed data | |
int arrpointer = 0; //array pointer |