nrf-rs / microbit

A Rust crate for BBC micro:bit development
BSD Zero Clause License
276 stars 61 forks source link

pins and leds are acting weird #95

Open justdie386 opened 2 years ago

justdie386 commented 2 years ago

Well i have been trying to use the example with the buttons, it works and ect, but when i tried to change which lights get opened, i realised it made no sense, lets say 1 is at the bottom right, well 2 would at a whole other random place across the microbit, so i want to ask, are there any specific paterns? idk how to explain but is there something that explains how exactly it works? because i tried to find a patern for ~2h, maybe im terrible, as i just started rust but gawd damn i didn't found no nothing. thanks

therealprof commented 2 years ago

The LEDs are not connected straight but in a matrix so to light up one LED you have to properly set the 2 pins which intersect (and those are different between different versions of the hardware, too). Cf. https://tech.microbit.org/hardware/schematic/