Hi I'm new here, and I have a little knowledge in electronics and I would be glad to hear where I have a lack of understanding, so feel free to point at my flaws.
now i want to create a matrix of buttons ,that each button will have its own id.
(I would glad to know better/correct ways to achive that )
so i decided, that each led's output (it switches via buttons) would be connected to analog input pin in order to get its voltage as analog value.
but instead of ,my current stopped its flow through the circuit
but i still managed to receive a value from A0 pin
I've never used tinkercad.
4*8 will require 32 wires so you will either need to use something with more pins like a Mega2560 port expanders or multiplexer ICs.
If tinkercad has a 4x4 example, I would start with it then expand it to 4x8.
Yes, the current has no-where to go. An input pin won't let it flow. (Ok, a very, very tiny current will flow, so small it's difficult to measure, and won't light a led, at least not a real led).
That's a surprise, you shouldn't have been able to, because with the switch in the right position, A0 would be "floating" which means it can read any value at random.
I can't understand your circuit diagram at all. You have 2 resistors both called "R1" which is crazy. The point of giving resistors names is to have different names. Your 2 resistors are in series, so could be replaced with one higher value resistor. Although it's possible that the 2K resistor is shorted out by the breadboard and could be completely removed without making any difference.
Can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.
Sorry but forget about the Fritzy cut and paste.