Untitled
unknown
plain_text
a year ago
321 B
6
Indexable
Never
int gaisma; void setup() { Serial.begin(9600); } void loop() { gaisma = 1023 - analogRead(A0); Serial.print("*G"); Serial.print(gaisma); Serial.print("*"); if(gaisma > 600) {Serial.print("*LR255G0B0*");Serial.print ("*SV20*");} else{ Serial.print ("*LR0G255B0*");Serial.print ("*SV255*");} delay(gaisma/2); }