mirror of
https://github.com/fmalpartida/New-LiquidCrystal.git
synced 2026-07-27 19:56:57 +00:00
Close #45
Added _BV macro to LCD.h, this macro is normally defined by Atmel in its library. The macro is very dependent from Atmel. REMARK: This fix will not fix being able to compile this library as the Arduino IDE has broken a range of base support operation on the DUE. For example: digitalPinToTimer() This library has not even been ported nor tested with Arduino 1.5
This commit is contained in:
@@ -51,6 +51,20 @@
|
||||
#include <Print.h>
|
||||
|
||||
|
||||
/*!
|
||||
@defined
|
||||
@abstract Performs a bitwise shift.
|
||||
@discussion Defines _BV bit shift which is very dependent macro defined by
|
||||
Atmel.
|
||||
|
||||
\note The bit shift is performed by the compiler which then inserts the
|
||||
result into the code. Thus, there is no run-time overhead when using
|
||||
_BV().
|
||||
*/
|
||||
#ifndef _BV
|
||||
#define _BV(bit) (1 << (bit))
|
||||
#endif
|
||||
|
||||
/*!
|
||||
@defined
|
||||
@abstract Enables disables fast waits for write operations for LCD
|
||||
|
||||
Reference in New Issue
Block a user