I then have the following pins linked to a single seven segment display:
A5 (a), A6 (b), A7 (c), B10 (d), B13 (e), B14 (f) and B15 (g).
The code I have below works when connected to my MacBook but when I disconnect it and then power it back up, it hangs on some of the switches. I can go through all the ‘gears’ and then it hangs on 6 or reverse.
I was hoping you kind people would help me out and let me know what I’m doing wrong.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hello everyone,
I’m looking for some help on my project. I had the idea of having switches in my gearstick and then a seven segment display show what gear I was in.
So I have a Pico with switches on B3, B4, B5, B7 and A8, they have a common positive 3.3 from the pin next to B3.
Gear - Active Switches
1 = B4 & A8
2 =B4 & B7
3 = A8
4 = B7
5 = B5 & A8
6 = B5 & B7
R = B3, B4 & A8
I then have the following pins linked to a single seven segment display:
A5 (a), A6 (b), A7 (c), B10 (d), B13 (e), B14 (f) and B15 (g).
The code I have below works when connected to my MacBook but when I disconnect it and then power it back up, it hangs on some of the switches. I can go through all the ‘gears’ and then it hangs on 6 or reverse.
I was hoping you kind people would help me out and let me know what I’m doing wrong.