Traduit de English par IA ·
CE0 ou CE1, bien sûr. CS était sur la broche 24 et le code indiquait 1. Je l’ai remplacé par spi.open(0, 0) et le canal 0 affiche maintenant 412 avec le réservoir à moitié plein, le canal 1 flotte comme il se doit. Le test en boucle (loopback) a aussi réussi, donc je garde celui-là. J’envoie les mA maintenant et je fais la mise à l’échelle dans le flux, comme l’a dit twilson.
CE0 vs CE1, of course. CS was on pin 24 and the code said 1. Changed it to spi.open(0, 0) and channel 0 now reads 412 with the tank half full, channel 1 floats like it should. Loopback test passed too, so I’ll keep that one. Sending mA now and scaling in the flow as twilson said.
If it isn't logged, it didn't happen.

