![]() ![]() Serial.print(F("\nPress any key to start. Serial.print(F("\n\nReading value for ")) Ĭase BLACK_CAL: Serial.print(F("BLACK calibration")) break Ĭase WHITE_CAL: Serial.print(F("WHITE calibration")) break Ĭase READ_VAL: Serial.print(F("DATA")) break Current FSM state is passed in and returned Finite State Machine for reading a value from the sensor Uint8_t fsmReadValue(uint8_t state, uint8_t valType, uint8_t maxReads) ![]() clear all characters from the serial input blocking wait for an input character from the input stream Input and output using the Serial console. Here the "calibrate" sketch I've tested: // TCS230 sensor calibration and color readings The values returned are obviously the same RGB = (0,0,0). ![]() Infact, with this configuration on my arduino wired to my TSC3200: S0 - Arduino pin 6 The PDF as I've understand, give explication referred to PIN functions, not how to wire to arduino.Īnyway, also in the "Calibrate" sketch as in the other sketches, I can't see any PIN definition about S0,S1 and OUT. Will try also with this sensor from adafruit and I will report the feedback. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |