Initial working Telegram bot, LDR and LED

This commit is contained in:
2025-06-10 00:52:34 +02:00
commit 5cba359881
6 changed files with 219 additions and 0 deletions

View File

@ -0,0 +1,16 @@
/* LDR test measuring with A0 in middle of 10k Ohm resistor and LDR
* +5V ---[ LDR ]---+---[ Resistor ]--- GND
|
Analog A0
*/
void setup() {
Serial.begin(9600);
}
void loop() {
int value = analogRead(A0); // Reads value between 0 and 1023
Serial.println(value);
delay(500);
}