The Logic Maker is where you create the logic that allows you change the behavior of blocks and peripherals.
Opening the Logic Maker
Every Hardware and Virtual Block has their own Logic Maker.
- To open the Logic Maker first insert the Block into the Workspace.
- After the block is in the Workspace click on it to reveal three icons below the block.
- Click the center Block to open the Logic Maker.
- The Logic Maker will now pop up in the Kitsunei Creator.
How The Logic Maker Works
The Logic Maker is an Event Driven system. This means that Gates are only Activated when an event flows to them.
Some gates that produce events are the INPUT, PLAY and CLOCK Gates.
Creating Logic
- In your logic you will always need a gate that produces an event at the beginning of you logic.
- Next you can add gates that manipulate your input or react to the event flowing through. This is where make your logic do what you want.
- In most cases you will be triggering Virtual or Hardware Blocks at the end.
- To make your logic work either click the Apply button or press CTRL + S.
NOTE: Whenever you make changes to your logic you will need to click the Apply button to make those changes occur. Exiting out of the Logic maker without hitting Apply your progress will be cleared.
Visualising the Flow of Events through the Logic
The flow of events is shown with a glowing effect of the gates. Only the gates that receive events from the previous gate will glow.
For example in the snippet below we can see that the first IF Gate blocks the event from going to the COUNTER Gate since the COUNTER Gate is not glowing. The second IF Gate allows the event through, which is also shown by the glowing COUNTER Gate.
With more complex logic this feature is useful, since it will show you where your logic is flowing through so that you can check that your logic is working the way you want it to.