User Tools

Site Tools


kaimana_led_controller

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
kaimana_led_controller [2013/12/30 22:36]
zonbipanda [Reading Kaimana Switch Input Pins]
kaimana_led_controller [2014/12/08 20:48] (current)
Line 180: Line 180:
  
 <​code>​ <​code>​
-// this command ​ 
 if( digitalRead( PIN_UP ) == LOW ) if( digitalRead( PIN_UP ) == LOW )
   your_code_call_joystick_up_active(); ​       // fictional function you need to write   your_code_call_joystick_up_active(); ​       // fictional function you need to write
-   +</code> ​  
-// is identical to this command ​ + 
 + 
 +And the streamlined version of the same code which you will see used in most of the example code. 
 + 
 +<​code>​
 if( !digitalRead( PIN_UP ) ) if( !digitalRead( PIN_UP ) )
   your_code_call_joystick_up_active(); ​       // fictional function you need to write   your_code_call_joystick_up_active(); ​       // fictional function you need to write
kaimana_led_controller.txt · Last modified: 2014/12/08 20:48 (external edit)