[Posts in the debugging category need to have the following pieces of information included in order to help other teachers or our moderator team best help you. Feel free to delete everything in brackets before posting your request for debugging help.]
Link to the project or level: [This is CSD U6a Lessson 15 Level 6b]
What I expect to happen: [I expect the color LEDs to turn yellow when the toggle switch is closed and to turn off when the switch is open. I expect the external LEDs connected to pins A0 & A6 to turn off when the switch is open and on with the switch is closed. I also expect a message in the console reporting each time the toggle switch opens and closes.]
What actually happens: [The behavior is unpredictable. Sometimes the toggle switch doesn’t seem to do anything. Sometimes when I open it I see 2 console messages (open for close and one for open) and the color LEDs are all yellow. I never see the external LEDs turn on .]
What I’ve tried:
- different CP boards
- removing the wires completely. I figured I would at least see the colorLEDs go on and off.
- going back to * CSD unit 6a lesson 6 which uses the toggle switch and the toggle switch worked just as expected.
- I tried swapping “open” and “close” in the onBoardEvents to see if that matters.
Any thoughts?
John