I'm working on a project that is using the GROVE STARTER KIT for LaunchPad and I'm trying to run one of the sensors/indicators, a buzzer in this case, with the CC3200. I'm programming the CC3200 with Energia. The code successfully compiles and downloads, but then nothing happens (the buzzer doesn't buzz). Here is the code:
#define BUZZER 40
#define LIGHT_SENSOR 24
int analog_value = 0;
int8_t bits[4] = {0};
void setup() {
// put your setup code here, to run once:
pinMode(BUZZER, OUTPUT);
pinMode(LIGHT_SENSOR, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
analog_value = analogRead(LIGHT_SENSOR);
digitalWrite(BUZZER,HIGH);
delay(10000);
digitalWrite(BUZZER,LOW);
delay(10000);
Serial.print("RUNNING");
}
The pins are correctly numbered and I'm using the proper commands. Any ideas on how to fix this issue?