Difference between revisions of "Editing Key Mappings"

From Flowcode Help
Jump to navigationJump to search
Line 5: Line 5:
  
 
To set up or change key mappings, select the Key Mappings option from the Edit menu (Edit > Key Mappings...). For each numeric key, you can select a component and for each component, you can select the individual element that you wish to control with that key. For example if you wish to use the '0' key to control the 5th switch in a component named 'Switches1' then select 'Switches1' in the Component list for Key 0 and then select 5 in the Element list for Key 0.
 
To set up or change key mappings, select the Key Mappings option from the Edit menu (Edit > Key Mappings...). For each numeric key, you can select a component and for each component, you can select the individual element that you wish to control with that key. For example if you wish to use the '0' key to control the 5th switch in a component named 'Switches1' then select 'Switches1' in the Component list for Key 0 and then select 5 in the Element list for Key 0.
 +
  
 
[[File:Gen_Component_Key_Mappings_01.png|left]]
 
[[File:Gen_Component_Key_Mappings_01.png|left]]
 
  
  

Revision as of 09:08, 8 November 2013

<sidebar>Sidebar: What Is a Component?</sidebar>

Gen Edit Menu Key Mappings.png

Key mappings allow you to use the keyboard keys 0 to 9 to control components attached to the microcontroller. For example if you have a bank of 8 push switches connected to the microcontroller, you could map the keys 1 to 8 to mimic the pushing and releasing of these switches when the flowchart is simulated.


To set up or change key mappings, select the Key Mappings option from the Edit menu (Edit > Key Mappings...). For each numeric key, you can select a component and for each component, you can select the individual element that you wish to control with that key. For example if you wish to use the '0' key to control the 5th switch in a component named 'Switches1' then select 'Switches1' in the Component list for Key 0 and then select 5 in the Element list for Key 0.


Gen Component Key Mappings 01.png


Key

The key on the number keypad that you wish to map.


Component

The attached component that you wish to map the key to.


Element

The individual element (Switch etc.) that you wish to bind the key to.


Elements are numbered sequentially in the same order as on the component.

Components with scrollbars use elements 1 and 2 to increase/decrease the scrollbar value.

Using Key mapping with elements that toggle will toggle the element on/off.

Using key mapping with press to make elements will send the element into its high, active, state when the key is pressed.

Releasing the key will return the element to its low, inactive state.

Using key mapping with scrollbars will increase/decrease the scrollbar value.