Sunfounder TAOS TCS3200 RGB sensor uploading error


i am having problem uploading the code to the sensor ( see title ) giving me this error:

avrdude: Version 6.3, compiled on Dec 16 2016 at 13:33:19
Copyright (c) 2000-2005 Brian Dean,
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is “C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.1.0_x64__mdqgnx93n4wtt\hardware\tools\avr/etc/avrdude.conf”

Using Port : COM1
Using Programmer : arduino
Overriding Baud Rate : 115200
An error occurred while uploading the sketch
avrdude: ser_open(): can’t open device “\.\COM1”: The system cannot find the file specified.

avrdude done. Thank you.

please Help.

the code is:

#include <TimerOne.h>
#define S0 3 // Please notice the Pin’s define
#define S1 4
#define S2 5
#define S3 6
#define OUT 2
int g_count = 0; // count the frequecy
int g_array[3]; // store the RGB value
int g_flag = 0; // filter of RGB queue
float g_SF[3]; // save the RGB Scale factor
// Init TSC230 and setting Frequency.
void TSC_Init()
//set the pins as OUTPUT
pinMode(S0, OUTPUT);
pinMode(S1, OUTPUT);
pinMode(S2, OUTPUT);
pinMode(S3, OUTPUT);
pinMode(OUT, INPUT);
// OUTPUT Frequency Scaling 2%
digitalWrite(S0, LOW);
digitalWrite(S1, HIGH);
// Select the filter color
void TSC_FilterColor(int Level01, int Level02)
if(Level01 != 0)
Level01 = HIGH;

if(Level02 != 0)
Level02 = HIGH;

digitalWrite(S2, Level01);
digitalWrite(S3, Level02);
void TSC_Count()
g_count ++ ;
void TSC_Callback()
case 0:
Serial.println("->WB Start");
TSC_WB(LOW, LOW); //Filter output Red
case 1:
Serial.print("->Frequency R=");
g_array[0] = g_count;
TSC_WB(HIGH, HIGH); //Filter output Green
case 2:
Serial.print("->Frequency G=");
g_array[1] = g_count;
TSC_WB(LOW, HIGH); //Filter output Blue
case 3:
Serial.print("->Frequency B=");
Serial.println("->WB End");
g_array[2] = g_count;
TSC_WB(HIGH, LOW); //Clear(no filter)
g_count = 0;
void TSC_WB(int Level0, int Level1) //White Balance
g_count = 0;
g_flag ++;
TSC_FilterColor(Level0, Level1);
Timer1.setPeriod(1000000);//1000000 microseconds(1s)
void setup()
Timer1.initialize(); // defaulte is 1s
attachInterrupt(0, TSC_Count, RISING);
for(int i=0; i<3; i++)

  • g_SF[0] = 255.0/ g_array[0]; //R Scale factor*
  • g_SF[1] = 255.0/ g_array[1] ; //G Scale factor*
  • g_SF[2] = 255.0/ g_array[2] ; //B Scale factor*
  • Serial.println(g_SF[0]);*
  • Serial.println(g_SF[1]);*
  • Serial.println(g_SF[2]);*
    void loop()
  • g_flag = 0;*
  • for(int i=0; i<3; i++)*
    Serial.println(int(g_array * g_SF*));
    _ delay(4000);
    the timeone library I got is the 11v._

Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup (the italics in your code above for example), leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. Using code tags and other important information is explained in the How to use this forum post. Please read it.

Select the correct port from Tools > Port menu. If the menu is disabled or the port of your board doesn’t appear then you may need to install a driver for the USB-serial chip on the board or you may have a defective or charge-only USB cable.