Changes between Version 1 and Version 2 of ArduinoToNativeC
- Timestamp:
- Jan 25, 2017, 12:08:35 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ArduinoToNativeC
v1 v2 24 24 PORTB &= ~_BV( PB5); // turn off LED 25 25 }}} 26 EXPERT NOTE: These idioms are recognized by the AVR code generator for 27 GCC and generate the SBR and CBR machine instructions which are more efficient 28 and safer than other more "obvious" ways of coding. In particular they do 29 not depend on the current state of the register. 30 26 31 Also, setting the direction of the pins (input/output) is a bit different. 27 32 In the Arduino environment you would use: