The following application should use the touch sensor to switch between:
Blinking 3 LEDs is just "blinky" application using a flip-flop to alternate between on and off.
Unit testing: when button (touch sensor) is

Unit testing: when button (touch sensor) is
But combining the two has problem because
Solution is to create a FB type which has same number of boolean input/outputs the same as presented in FBDK tutorial in Vyatkin's book. He used a composite FB and 4 LEDs. With LEGO Mindstorms (LMS) with touch sensor as a button, there are only 3 sensor connections left for LEDs. Current FORTE version used with LMS does not support composite FBs.
Testing Lesson:
Connecting a LED with a duplicate output can be used to see if an application sends a specific output event.
- blinking 3 leds and
- chase of 3 leds.
Blinking 3 LEDs is just "blinky" application using a flip-flop to alternate between on and off.
Unit testing: when button (touch sensor) is
- not pressed = blink 3 LEDs when button (touch sensor) is not pressed
- pressed = longer delay

Unit testing: when button (touch sensor) is
- not pressed = longer delay
- pressed = chase 3 LEDs
But combining the two has problem because
- only 1 boolean input is allowed
- using E_RS only sends it EO output event if there is a state change between R and S. (So can not send cascade E_RS events to change how the events are changed=
Solution is to create a FB type which has same number of boolean input/outputs the same as presented in FBDK tutorial in Vyatkin's book. He used a composite FB and 4 LEDs. With LEGO Mindstorms (LMS) with touch sensor as a button, there are only 3 sensor connections left for LEDs. Current FORTE version used with LMS does not support composite FBs.
Testing Lesson:
Connecting a LED with a duplicate output can be used to see if an application sends a specific output event.
No comments:
Post a Comment