Search the Community
Showing results for tags 'UV sensor'.
So we are doing a project where we gonna use 3 UV sensors. I was just wondering how can we use the code more than one time? Like how can we triple it? this is the code. /* AnalogReadSerial Reads an analog input on pin A3, prints the result to the serial monitor. Attach the center pin of a potentiometer to pin A3, and the outside pins to ~3V and ground. Hardware Required: * MSP-EXP430G2 LaunchPad * 10-kilohm Potentiometer * hook-up wire This example code is in the public domain. */ // the setup routine runs once when you press reset: void