├── ADXL345 ├── ADXL345.cpp ├── ADXL345.h ├── examples │ ├── ADXL345Run │ │ ├── ADXLRun345.pde │ │ ├── accel_cal.py │ │ ├── cal.dat │ │ └── cal1.dat │ ├── ADXL345_no_library │ │ └── BareBones_ADXL345.pde │ └── ADXL345_test │ │ └── ADXL345_test.pde └── keywords.txt ├── LiquidCrystal ├── FastIO.cpp ├── FastIO.h ├── I2CIO.cpp ├── I2CIO.h ├── LCD.cpp ├── LCD.h ├── LiquidCrystal.cpp ├── LiquidCrystal.h ├── LiquidCrystal_I2C.cpp ├── LiquidCrystal_I2C.h ├── LiquidCrystal_SR.cpp ├── LiquidCrystal_SR.h ├── LiquidCrystal_SR2W.cpp ├── LiquidCrystal_SR2W.h ├── LiquidCrystal_SR3W.cpp ├── LiquidCrystal_SR3W.h ├── docs │ ├── Doxyfile │ ├── def │ │ ├── doxygen.def │ │ └── doxygen.def.txt │ └── html │ │ ├── _fast_i_o_8cpp.html │ │ ├── _fast_i_o_8cpp_source.html │ │ ├── _fast_i_o_8h.html │ │ ├── _fast_i_o_8h_source.html │ │ ├── _i2_c_i_o_8cpp.html │ │ ├── _i2_c_i_o_8cpp_source.html │ │ ├── _i2_c_i_o_8h.html │ │ ├── _i2_c_i_o_8h_source.html │ │ ├── _l_c_d_8cpp.html │ │ ├── _l_c_d_8cpp_source.html │ │ ├── _l_c_d_8h.html │ │ ├── _l_c_d_8h_source.html │ │ ├── _liquid_crystal_8cpp.html │ │ ├── _liquid_crystal_8cpp_source.html │ │ ├── _liquid_crystal_8h.html │ │ ├── _liquid_crystal_8h_source.html │ │ ├── _liquid_crystal___i2_c_8cpp.html │ │ ├── _liquid_crystal___i2_c_8cpp_source.html │ │ ├── _liquid_crystal___i2_c_8h.html │ │ ├── _liquid_crystal___i2_c_8h_source.html │ │ ├── _liquid_crystal___s_r2_w_8cpp.html │ │ ├── _liquid_crystal___s_r2_w_8cpp_source.html │ │ ├── _liquid_crystal___s_r2_w_8h.html │ │ ├── _liquid_crystal___s_r2_w_8h_source.html │ │ ├── _liquid_crystal___s_r3_w_8cpp.html │ │ ├── _liquid_crystal___s_r3_w_8cpp_source.html │ │ ├── _liquid_crystal___s_r3_w_8h.html │ │ ├── _liquid_crystal___s_r3_w_8h_source.html │ │ ├── _liquid_crystal___s_r_8cpp.html │ │ ├── _liquid_crystal___s_r_8cpp_source.html │ │ ├── _liquid_crystal___s_r_8h.html │ │ ├── _liquid_crystal___s_r_8h_source.html │ │ ├── _liquid_crystal___s_r___l_c_d3_8cpp.html │ │ ├── _liquid_crystal___s_r___l_c_d3_8cpp_source.html │ │ ├── _liquid_crystal___s_r___l_c_d3_8h.html │ │ ├── _liquid_crystal___s_r___l_c_d3_8h_source.html │ │ ├── annotated.html │ │ ├── bc_s.png │ │ ├── class_i2_c_i_o-members.html │ │ ├── class_i2_c_i_o.html │ │ ├── class_l_c_d-members.html │ │ ├── class_l_c_d.html │ │ ├── class_l_c_d.png │ │ ├── class_liquid_crystal-members.html │ │ ├── class_liquid_crystal.html │ │ ├── class_liquid_crystal.png │ │ ├── class_liquid_crystal___i2_c-members.html │ │ ├── class_liquid_crystal___i2_c.html │ │ ├── class_liquid_crystal___i2_c.png │ │ ├── class_liquid_crystal___s_r-members.html │ │ ├── class_liquid_crystal___s_r.html │ │ ├── class_liquid_crystal___s_r.png │ │ ├── class_liquid_crystal___s_r2_w-members.html │ │ ├── class_liquid_crystal___s_r2_w.html │ │ ├── class_liquid_crystal___s_r2_w.png │ │ ├── class_liquid_crystal___s_r3_w-members.html │ │ ├── class_liquid_crystal___s_r3_w.html │ │ ├── class_liquid_crystal___s_r3_w.png │ │ ├── class_liquid_crystal___s_r___l_c_d3-members.html │ │ ├── class_liquid_crystal___s_r___l_c_d3.html │ │ ├── class_liquid_crystal___s_r___l_c_d3.png │ │ ├── classes.html │ │ ├── closed.png │ │ ├── doxygen.css │ │ ├── doxygen.png │ │ ├── files.html │ │ ├── functions.html │ │ ├── functions_func.html │ │ ├── functions_vars.html │ │ ├── globals.html │ │ ├── globals_defs.html │ │ ├── globals_enum.html │ │ ├── globals_eval.html │ │ ├── globals_func.html │ │ ├── globals_type.html │ │ ├── hierarchy.html │ │ ├── index.html │ │ ├── installdox │ │ ├── jquery.js │ │ ├── logoGoogle.jpg │ │ ├── nav_f.png │ │ ├── nav_h.png │ │ ├── open.png │ │ ├── search │ │ ├── all_5f.html │ │ ├── all_61.html │ │ ├── all_62.html │ │ ├── all_63.html │ │ ├── all_64.html │ │ ├── all_65.html │ │ ├── all_66.html │ │ ├── all_68.html │ │ ├── all_69.html │ │ ├── all_6c.html │ │ ├── all_6d.html │ │ ├── all_6e.html │ │ ├── all_6f.html │ │ ├── all_70.html │ │ ├── all_72.html │ │ ├── all_73.html │ │ ├── all_74.html │ │ ├── all_77.html │ │ ├── classes_69.html │ │ ├── classes_6c.html │ │ ├── close.png │ │ ├── defines_5f.html │ │ ├── defines_61.html │ │ ├── defines_62.html │ │ ├── defines_63.html │ │ ├── defines_64.html │ │ ├── defines_65.html │ │ ├── defines_66.html │ │ ├── defines_68.html │ │ ├── defines_6c.html │ │ ├── defines_72.html │ │ ├── defines_73.html │ │ ├── defines_74.html │ │ ├── enums_74.html │ │ ├── enumvalues_6e.html │ │ ├── enumvalues_70.html │ │ ├── files_66.html │ │ ├── files_69.html │ │ ├── files_6c.html │ │ ├── functions_61.html │ │ ├── functions_62.html │ │ ├── functions_63.html │ │ ├── functions_64.html │ │ ├── functions_65.html │ │ ├── functions_66.html │ │ ├── functions_68.html │ │ ├── functions_69.html │ │ ├── functions_6c.html │ │ ├── functions_6d.html │ │ ├── functions_6e.html │ │ ├── functions_6f.html │ │ ├── functions_70.html │ │ ├── functions_72.html │ │ ├── functions_73.html │ │ ├── functions_77.html │ │ ├── mag_sel.png │ │ ├── nomatches.html │ │ ├── search.css │ │ ├── search.js │ │ ├── search_l.png │ │ ├── search_m.png │ │ ├── search_r.png │ │ ├── typedefs_66.html │ │ └── variables_5f.html │ │ ├── tab_a.png │ │ ├── tab_b.png │ │ ├── tab_h.png │ │ ├── tab_s.png │ │ └── tabs.css ├── examples │ ├── HelloWorld_4bit │ │ └── HelloWorld_4bit.pde │ ├── HelloWorld_SR │ │ └── HelloWorld_SR.pde │ ├── HelloWorld_i2c │ │ └── HelloWorld_i2c.pde │ ├── LCDiSpeed │ │ ├── LCDiSpeed.pde │ │ └── LCDiSpeed.txt │ ├── SerialDisplay │ │ └── SerialDisplay.pde │ ├── i2cLCDextraIO │ │ └── i2cLCDextraIO.pde │ ├── i2cLCDextraIO_tempLeonardo │ │ └── i2cLCDextraIO_tempLeonardo.ino │ └── performanceLCD │ │ └── performanceLCD.pde └── keywords.txt ├── Pong └── Pong.ino └── README /ADXL345/examples/ADXL345Run/ADXLRun345.pde: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * * 3 | * ADXL345 Driver for Arduino * 4 | * * 5 | *************************************************************************** 6 | * * 7 | * This program is free software; you can redistribute it and/or modify * 8 | * it under the terms of the MIT License. * 9 | * This program is distributed in the hope that it will be useful, * 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 12 | * MIT License for more details. * 13 | * * 14 | *************************************************************************** 15 | * 16 | * Revision History 17 | * 18 | * Date By What 19 | * 20100515 TJS Initial Creation 20 | * 20100524 TJS Modified to run with Kevin Stevenard's driver 21 | */ 22 | #include "Wire.h" 23 | #include "ADXL345.h" 24 | 25 | ADXL345 Accel; 26 | 27 | void setup(){ 28 | Serial.begin(57600); 29 | delay(1); 30 | Wire.begin(); 31 | delay(1); 32 | Serial.println("Here"); 33 | Accel.set_bw(ADXL345_BW_12); 34 | Serial.print("BW_OK? "); 35 | Serial.println(Accel.status, DEC); 36 | delay(1000); 37 | } 38 | 39 | void loop(){ 40 | int i; 41 | double acc_data[3]; 42 | Accel.get_Gxyz(acc_data); 43 | if(Accel.status){ 44 | float length = 0.; 45 | for(i = 0; i < 3; i++){ 46 | length += (float)acc_data[i] * (float)acc_data[i]; 47 | Serial.print(acc_data[i]); 48 | Serial.print(" "); 49 | } 50 | length = sqrt(length); 51 | Serial.print(length); 52 | Serial.println(""); 53 | delay(40); 54 | } 55 | else{ 56 | Serial.println("ERROR: ADXL345 data read error"); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /ADXL345/examples/ADXL345Run/accel_cal.py: -------------------------------------------------------------------------------- 1 | import scipy.optimize 2 | from pylab import * 3 | from numpy import * 4 | 5 | cal = open('cal1.dat') 6 | 7 | for f in [cal]: 8 | data = array([map(float, l.split()) for l in f.readlines()]) 9 | 10 | N = len(data[0]) 11 | 12 | x = data[:,0] 13 | y = data[:,1] 14 | z = data[:,2] 15 | data = data[:,:3] 16 | 17 | def cost(args): 18 | rs = diag(1. / array(args[0:3])) ** 2 19 | c = array(args[3:6]) 20 | m = data - array(c) 21 | out = 0 22 | for p in m: 23 | out += abs(dot(dot(p, rs), p) - 1) 24 | return out 25 | guess = array([250, 250, 250, 0, 0, 0]) 26 | print cost(guess) 27 | best = scipy.optimize.fmin(cost, guess) 28 | print cost(best) 29 | print best 30 | print 1/best[:3] 31 | 32 | here 33 | A = array([[cx + r * cos(theta), 34 | cy + r * sin(theta)] for theta in arange(0, 2 * pi, 1 * pi/180)]) 35 | # plot(A[:,0], A[:,1], 'g-') 36 | xy = data[:,1:3] 37 | 38 | def cost(params): 39 | cx, cy, r = params 40 | xy_ = xy - [cx, cy] 41 | thetas = arctan2(xy_[:,1], xy_[:,0]) 42 | resids = xy_ - transpose([r * cos(thetas), r * sin(thetas)]) 43 | return sum(ravel(resids ** 2)) 44 | 45 | cx, cy, r = scipy.optimize.fmin(cost, [cx, cy, r], disp=False) 46 | print f.name, cx, cy, r 47 | ## acc_cal_lights_on.dat 550.150958354 507.218838209 249.831129791 48 | ## acc_cal_lights_off.dat 563.391868993 518.281081432 251.367556713 49 | 50 | A = array([[cx + r * cos(theta), 51 | cy + r * sin(theta)] for theta in arange(0, 2 * pi, 1 * pi/180)]) 52 | plot(A[:,0], A[:,1]) 53 | -------------------------------------------------------------------------------- /ADXL345/examples/ADXL345_no_library/BareBones_ADXL345.pde: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | * This program is free software; you can redistribute it and/or modify * 3 | * it under the terms of the GNU License V2. * 4 | * This program is distributed in the hope that it will be useful, * 5 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * 6 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 7 | * GNU General Public License, version 2 for more details * 8 | * * 9 | * Bare bones ADXL345 i2c example for Arduino 1.0 * 10 | * by Jens C Brynildsen * 11 | * This version is not reliant of any external lib * 12 | * (Adapted for Arduino 1.0 from http://code.google.com/p/adxl345driver)* 13 | * * 14 | * Demonstrates use of ADXL345 (using the Sparkfun ADXL345 breakout) * 15 | * with i2c communication. Datasheet: * 16 | * http://www.sparkfun.com/datasheets/Sensors/Accelerometer/ADXL345.pdf * 17 | * If you need more advanced features such as freefall and tap * 18 | * detection, check out: * 19 | * https://github.com/jenschr/Arduino-libraries * 20 | ***********************************************************************/ 21 | 22 | // Cabling for i2c using Sparkfun breakout with an Arduino Uno / Duemilanove: 23 | // Arduino <-> Breakout board 24 | // Gnd - GND 25 | // 3.3v - VCC 26 | // 3.3v - CS 27 | // Analog 4 - SDA 28 | // Analog 5 - SLC 29 | 30 | // Cabling for i2c using Sparkfun breakout with an Arduino Mega / Mega ADK: 31 | // Arduino <-> Breakout board 32 | // Gnd - GND 33 | // 3.3v - VCC 34 | // 3.3v - CS 35 | // 20 - SDA 36 | // 21 - SLC 37 | 38 | #include 39 | 40 | #define DEVICE (0x53) // Device address as specified in data sheet 41 | 42 | byte _buff[6]; 43 | 44 | char POWER_CTL = 0x2D; //Power Control Register 45 | char DATA_FORMAT = 0x31; 46 | char DATAX0 = 0x32; //X-Axis Data 0 47 | char DATAX1 = 0x33; //X-Axis Data 1 48 | char DATAY0 = 0x34; //Y-Axis Data 0 49 | char DATAY1 = 0x35; //Y-Axis Data 1 50 | char DATAZ0 = 0x36; //Z-Axis Data 0 51 | char DATAZ1 = 0x37; //Z-Axis Data 1 52 | 53 | void setup() 54 | { 55 | Wire.begin(); // join i2c bus (address optional for master) 56 | Serial.begin(57600); // start serial for output. Make sure you set your Serial Monitor to the same! 57 | Serial.print("init"); 58 | 59 | //Put the ADXL345 into +/- 4G range by writing the value 0x01 to the DATA_FORMAT register. 60 | writeTo(DATA_FORMAT, 0x01); 61 | //Put the ADXL345 into Measurement Mode by writing 0x08 to the POWER_CTL register. 62 | writeTo(POWER_CTL, 0x08); 63 | } 64 | 65 | void loop() 66 | { 67 | readAccel(); // read the x/y/z tilt 68 | delay(500); // only read every 0,5 seconds 69 | } 70 | 71 | void readAccel() { 72 | uint8_t howManyBytesToRead = 6; 73 | readFrom( DATAX0, howManyBytesToRead, _buff); //read the acceleration data from the ADXL345 74 | 75 | // each axis reading comes in 10 bit resolution, ie 2 bytes. Least Significat Byte first!! 76 | // thus we are converting both bytes in to one int 77 | int x = (((int)_buff[1]) << 8) | _buff[0]; 78 | int y = (((int)_buff[3]) << 8) | _buff[2]; 79 | int z = (((int)_buff[5]) << 8) | _buff[4]; 80 | Serial.print("x: "); 81 | Serial.print( x ); 82 | Serial.print(" y: "); 83 | Serial.print( y ); 84 | Serial.print(" z: "); 85 | Serial.println( z ); 86 | } 87 | 88 | void writeTo(byte address, byte val) { 89 | Wire.beginTransmission(DEVICE); // start transmission to device 90 | Wire.write(address); // send register address 91 | Wire.write(val); // send value to write 92 | Wire.endTransmission(); // end transmission 93 | } 94 | 95 | // Reads num bytes starting from address register on device in to _buff array 96 | void readFrom(byte address, int num, byte _buff[]) { 97 | Wire.beginTransmission(DEVICE); // start transmission to device 98 | Wire.write(address); // sends address to read from 99 | Wire.endTransmission(); // end transmission 100 | 101 | Wire.beginTransmission(DEVICE); // start transmission to device 102 | Wire.requestFrom(DEVICE, num); // request 6 bytes from device 103 | 104 | int i = 0; 105 | while(Wire.available()) // device may send less than requested (abnormal) 106 | { 107 | _buff[i] = Wire.read(); // receive a byte 108 | i++; 109 | } 110 | Wire.endTransmission(); // end transmission 111 | } -------------------------------------------------------------------------------- /ADXL345/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For ADXL345 3 | ####################################### 4 | ADXL345 KEYWORD1 5 | 6 | status KEYWORD2 7 | error_code KEYWORD2 8 | gains KEYWORD2 9 | 10 | powerOn KEYWORD2 11 | readAccel KEYWORD2 12 | get_Gxyz KEYWORD2 13 | 14 | setTapThreshold KEYWORD2 15 | getTapThreshold KEYWORD2 16 | setAxisGains KEYWORD2 17 | getAxisGains KEYWORD2 18 | setAxisOffset KEYWORD2 19 | getAxisOffset KEYWORD2 20 | setTapDuration KEYWORD2 21 | getTapDuration KEYWORD2 22 | setDoubleTapLatency KEYWORD2 23 | getDoubleTapLatency KEYWORD2 24 | setDoubleTapWindow KEYWORD2 25 | getDoubleTapWindow KEYWORD2 26 | setActivityThreshold KEYWORD2 27 | getActivityThreshold KEYWORD2 28 | setInactivityThreshold KEYWORD2 29 | getInactivityThreshold KEYWORD2 30 | setTimeInactivity KEYWORD2 31 | getTimeInactivity KEYWORD2 32 | setFreeFallThreshold KEYWORD2 33 | getFreeFallThreshold KEYWORD2 34 | setFreeFallDuration KEYWORD2 35 | getFreeFallDuration KEYWORD2 36 | 37 | isActivityXEnabled KEYWORD2 38 | isActivityYEnabled KEYWORD2 39 | isActivityZEnabled KEYWORD2 40 | isInactivityXEnabled KEYWORD2 41 | isInactivityYEnabled KEYWORD2 42 | isInactivityZEnabled KEYWORD2 43 | isActivityAc KEYWORD2 44 | isInactivityAc KEYWORD2 45 | setActivityAc KEYWORD2 46 | setInactivityAc KEYWORD2 47 | 48 | getSuppressBit KEYWORD2 49 | setSuppressBit KEYWORD2 50 | isTapDetectionOnX KEYWORD2 51 | setTapDetectionOnX KEYWORD2 52 | isTapDetectionOnY KEYWORD2 53 | setTapDetectionOnY KEYWORD2 54 | isTapDetectionOnZ KEYWORD2 55 | setTapDetectionOnZ KEYWORD2 56 | 57 | setActivityX KEYWORD2 58 | setActivityY KEYWORD2 59 | setActivityZ KEYWORD2 60 | setInactivityX KEYWORD2 61 | setInactivityY KEYWORD2 62 | setInactivityZ KEYWORD2 63 | 64 | isActivitySourceOnX KEYWORD2 65 | isActivitySourceOnY KEYWORD2 66 | isActivitySourceOnZ KEYWORD2 67 | isTapSourceOnX KEYWORD2 68 | isTapSourceOnY KEYWORD2 69 | isTapSourceOnZ KEYWORD2 70 | isAsleep KEYWORD2 71 | 72 | isLowPower KEYWORD2 73 | setLowPower KEYWORD2 74 | getRate KEYWORD2 75 | setRate KEYWORD2 76 | set_bw KEYWORD2 77 | get_bw_code KEYWORD2 78 | 79 | getInterruptSource KEYWORD2 80 | getInterruptSource KEYWORD2 81 | getInterruptMapping KEYWORD2 82 | setInterruptMapping KEYWORD2 83 | isInterruptEnabled KEYWORD2 84 | setInterrupt KEYWORD2 85 | 86 | getRangeSetting KEYWORD2 87 | setRangeSetting KEYWORD2 88 | getSelfTestBit KEYWORD2 89 | setSelfTestBit KEYWORD2 90 | getSpiBit KEYWORD2 91 | setSpiBit KEYWORD2 92 | getInterruptLevelBit KEYWORD2 93 | setInterruptLevelBit KEYWORD2 94 | getFullResBit KEYWORD2 95 | setFullResBit KEYWORD2 96 | getJustifyBit KEYWORD2 97 | setJustifyBit KEYWORD2 98 | printAllRegister KEYWORD2 99 | 100 | ####################################### 101 | # Constants (LITERAL1) 102 | ####################################### 103 | ADXL345_DEVID LITERAL1 104 | ADXL345_RESERVED1 LITERAL1 105 | ADXL345_THRESH_TAP LITERAL1 106 | ADXL345_OFSX LITERAL1 107 | ADXL345_OFSY LITERAL1 108 | ADXL345_OFSZ LITERAL1 109 | ADXL345_DUR LITERAL1 110 | ADXL345_LATENT LITERAL1 111 | ADXL345_WINDOW LITERAL1 112 | ADXL345_THRESH_ACT LITERAL1 113 | ADXL345_THRESH_INACT LITERAL1 114 | ADXL345_TIME_INACT LITERAL1 115 | ADXL345_ACT_INACT_CTL LITERAL1 116 | ADXL345_THRESH_FF LITERAL1 117 | ADXL345_TIME_FF LITERAL1 118 | ADXL345_TAP_AXES LITERAL1 119 | ADXL345_ACT_TAP_STATUS LITERAL1 120 | ADXL345_BW_RATE LITERAL1 121 | ADXL345_POWER_CTL LITERAL1 122 | ADXL345_INT_ENABLE LITERAL1 123 | ADXL345_INT_MA LITERAL1 124 | ADXL345_INT_SOURCE LITERAL1 125 | ADXL345_DATA_FORMAT LITERAL1 126 | ADXL345_DATAX0 LITERAL1 127 | ADXL345_DATAX1 LITERAL1 128 | ADXL345_DATAY0 LITERAL1 129 | ADXL345_DATAY1 LITERAL1 130 | ADXL345_DATAZ0 LITERAL1 131 | ADXL345_DATAZ1 LITERAL1 132 | ADXL345_FIFO_CTL LITERAL1 133 | ADXL345_FIFO_STATUS LITERAL1 134 | 135 | ADXL345_BW_1600 LITERAL1 136 | ADXL345_BW_800 LITERAL1 137 | ADXL345_BW_400 LITERAL1 138 | ADXL345_BW_200 LITERAL1 139 | ADXL345_BW_100 LITERAL1 140 | ADXL345_BW_50 LITERAL1 141 | ADXL345_BW_25 LITERAL1 142 | ADXL345_BW_12 LITERAL1 143 | ADXL345_BW_6 LITERAL1 144 | ADXL345_BW_3 LITERAL1 145 | 146 | ADXL345_INT1_PIN LITERAL1 147 | ADXL345_INT2_PIN LITERAL1 148 | 149 | ADXL345_INT_DATA_READY_BIT LITERAL1 150 | ADXL345_INT_SINGLE_TAP_BIT LITERAL1 151 | ADXL345_INT_DOUBLE_TAP_BIT LITERAL1 152 | ADXL345_INT_ACTIVITY_BIT LITERAL1 153 | ADXL345_INT_INACTIVITY_BIT LITERAL1 154 | ADXL345_INT_FREE_FALL_BIT LITERAL1 155 | ADXL345_INT_WATERMARK_BIT LITERAL1 156 | ADXL345_INT_OVERRUNY_BIT LITERAL1 157 | 158 | ADXL345_OK LITERAL1 159 | ADXL345_ERROR LITERAL1 160 | 161 | ADXL345_NO_ERROR LITERAL1 162 | ADXL345_READ_ERROR LITERAL1 163 | ADXL345_BAD_ARG LITERAL1 -------------------------------------------------------------------------------- /LiquidCrystal/I2CIO.cpp: -------------------------------------------------------------------------------- 1 | // --------------------------------------------------------------------------- 2 | // Created by Francisco Malpartida on 20/08/11. 3 | // Copyright 2011 - Under creative commons license 3.0: 4 | // Attribution-ShareAlike CC BY-SA 5 | // 6 | // This software is furnished "as is", without technical support, and with no 7 | // warranty, express or implied, as to its usefulness for any purpose. 8 | // 9 | // Thread Safe: No 10 | // Extendable: Yes 11 | // 12 | // @file I2CIO.h 13 | // This file implements a basic IO library using the PCF8574 I2C IO Expander 14 | // chip. 15 | // 16 | // @brief 17 | // Implement a basic IO library to drive the PCF8574* I2C IO Expander ASIC. 18 | // The library implements basic IO general methods to configure IO pin direction 19 | // read and write uint8_t operations and basic pin level routines to set or read 20 | // a particular IO port. 21 | // 22 | // 23 | // @version API 1.0.0 24 | // 25 | // @author F. Malpartida - fmalpartida@gmail.com 26 | // --------------------------------------------------------------------------- 27 | #if (ARDUINO < 100) 28 | #include 29 | #else 30 | #include 31 | #endif 32 | 33 | #include 34 | 35 | #include 36 | #include "I2CIO.h" 37 | 38 | // CLASS VARIABLES 39 | // --------------------------------------------------------------------------- 40 | 41 | 42 | // CONSTRUCTOR 43 | // --------------------------------------------------------------------------- 44 | I2CIO::I2CIO ( ) 45 | { 46 | _i2cAddr = 0x0; 47 | _dirMask = 0xFF; // mark all as INPUTs 48 | _shadow = 0x0; // no values set 49 | _initialised = false; 50 | } 51 | 52 | // PUBLIC METHODS 53 | // --------------------------------------------------------------------------- 54 | 55 | // 56 | // begin 57 | int I2CIO::begin ( uint8_t i2cAddr ) 58 | { 59 | _i2cAddr = i2cAddr; 60 | 61 | Wire.begin ( ); 62 | 63 | _initialised = Wire.requestFrom ( _i2cAddr, (uint8_t)1 ); 64 | 65 | #if (ARDUINO < 100) 66 | _shadow = Wire.receive (); 67 | #else 68 | _shadow = Wire.read (); // Remove the byte read don't need it. 69 | #endif 70 | 71 | return ( _initialised ); 72 | } 73 | 74 | // 75 | // pinMode 76 | void I2CIO::pinMode ( uint8_t pin, uint8_t dir ) 77 | { 78 | if ( _initialised ) 79 | { 80 | if ( OUTPUT == dir ) 81 | { 82 | _dirMask &= ~( 1 << pin ); 83 | } 84 | else 85 | { 86 | _dirMask |= ( 1 << pin ); 87 | } 88 | } 89 | } 90 | 91 | // 92 | // portMode 93 | void I2CIO::portMode ( uint8_t dir ) 94 | { 95 | 96 | if ( _initialised ) 97 | { 98 | if ( dir == INPUT ) 99 | { 100 | _dirMask = 0xFF; 101 | } 102 | else 103 | { 104 | _dirMask = 0x00; 105 | } 106 | } 107 | } 108 | 109 | // 110 | // read 111 | uint8_t I2CIO::read ( void ) 112 | { 113 | uint8_t retVal = 0; 114 | 115 | if ( _initialised ) 116 | { 117 | Wire.requestFrom ( _i2cAddr, (uint8_t)1 ); 118 | #if (ARDUINO < 100) 119 | retVal = ( _dirMask & Wire.receive ( ) ); 120 | #else 121 | retVal = ( _dirMask & Wire.read ( ) ); 122 | #endif 123 | 124 | } 125 | return ( retVal ); 126 | } 127 | 128 | // 129 | // write 130 | int I2CIO::write ( uint8_t value ) 131 | { 132 | int status = 0; 133 | 134 | if ( _initialised ) 135 | { 136 | // Only write HIGH the values of the ports that have been initialised as 137 | // outputs updating the output shadow of the device 138 | _shadow = ( value & ~(_dirMask) ); 139 | 140 | Wire.beginTransmission ( _i2cAddr ); 141 | #if (ARDUINO < 100) 142 | Wire.send ( _shadow ); 143 | #else 144 | Wire.write ( _shadow ); 145 | #endif 146 | status = Wire.endTransmission (); 147 | } 148 | return ( (status == 0) ); 149 | } 150 | 151 | // 152 | // digitalRead 153 | uint8_t I2CIO::digitalRead ( uint8_t pin ) 154 | { 155 | uint8_t pinVal = 0; 156 | 157 | // Check if initialised and that the pin is within range of the device 158 | // ------------------------------------------------------------------- 159 | if ( ( _initialised ) && ( pin <= 7 ) ) 160 | { 161 | // Remove the values which are not inputs and get the value of the pin 162 | pinVal = this->read() & _dirMask; 163 | pinVal = ( pinVal >> pin ) & 0x01; // Get the pin value 164 | } 165 | return (pinVal); 166 | } 167 | 168 | // 169 | // digitalWrite 170 | int I2CIO::digitalWrite ( uint8_t pin, uint8_t level ) 171 | { 172 | uint8_t writeVal; 173 | int status = 0; 174 | 175 | // Check if initialised and that the pin is within range of the device 176 | // ------------------------------------------------------------------- 177 | if ( ( _initialised ) && ( pin <= 7 ) ) 178 | { 179 | // Only write to HIGH the port if the port has been configured as 180 | // an OUTPUT pin. Add the new state of the pin to the shadow 181 | writeVal = ( 1 << pin ) & ~_dirMask; 182 | if ( level == HIGH ) 183 | { 184 | _shadow |= writeVal; 185 | 186 | } 187 | else 188 | { 189 | _shadow &= ~writeVal; 190 | } 191 | status = this->write ( _shadow ); 192 | } 193 | return ( status ); 194 | } 195 | 196 | // 197 | // PRIVATE METHODS 198 | // --------------------------------------------------------------------------- 199 | -------------------------------------------------------------------------------- /LiquidCrystal/I2CIO.h: -------------------------------------------------------------------------------- 1 | // --------------------------------------------------------------------------- 2 | // Created by Francisco Malpartida on 20/08/11. 3 | // Copyright 2011 - Under creative commons license 3.0: 4 | // Attribution-ShareAlike CC BY-SA 5 | // 6 | // This software is furnished "as is", without technical support, and with no 7 | // warranty, express or implied, as to its usefulness for any purpose. 8 | // 9 | // Thread Safe: No 10 | // Extendable: Yes 11 | // 12 | // @file I2CIO.h 13 | // This file implements a basic IO library using the PCF8574 I2C IO Expander 14 | // chip. 15 | // 16 | // @brief 17 | // Implement a basic IO library to drive the PCF8574* I2C IO Expander ASIC. 18 | // The library implements basic IO general methods to configure IO pin direction 19 | // read and write uint8_t operations and basic pin level routines to set or read 20 | // a particular IO port. 21 | // 22 | // @version API 1.0.0 23 | // 24 | // @author F. Malpartida - fmalpartida@gmail.com 25 | // --------------------------------------------------------------------------- 26 | 27 | #ifndef _I2CIO_H_ 28 | #define _I2CIO_H_ 29 | 30 | #include 31 | 32 | #define _I2CIO_VERSION "1.0.0" 33 | 34 | /*! 35 | @class 36 | @abstract I2CIO 37 | @discussion Library driver to control PCF8574 based ASICs. Implementing 38 | library calls to set/get port through I2C bus. 39 | */ 40 | 41 | class I2CIO 42 | { 43 | public: 44 | /*! 45 | @method 46 | @abstract Constructor method 47 | @discussion Class constructor constructor. 48 | */ 49 | I2CIO ( ); 50 | 51 | /*! 52 | @method 53 | @abstract Initializes the device. 54 | @discussion This method initializes the device allocating an I2C address. 55 | This method is the first method that should be call prior to calling any 56 | other method form this class. On initialization all pins are configured 57 | as INPUT on the device. 58 | 59 | @param i2cAddr: I2C Address where the device is located. 60 | @result 1 if the device was initialized correctly, 0 otherwise 61 | */ 62 | int begin ( uint8_t i2cAddr ); 63 | 64 | /*! 65 | @method 66 | @abstract Sets the mode of a particular pin. 67 | @discussion Sets the mode of a particular pin to INPUT, OUTPUT. digitalWrite 68 | has no effect on pins which are not declared as output. 69 | 70 | @param pin[in] Pin from the I2C IO expander to be configured. Range 0..7 71 | @param dir[in] Pin direction (INPUT, OUTPUT). 72 | */ 73 | void pinMode ( uint8_t pin, uint8_t dir ); 74 | 75 | /*! 76 | @method 77 | @abstract Sets all the pins of the device in a particular direction. 78 | @discussion This method sets all the pins of the device in a particular 79 | direction. This method is useful to set all the pins of the device to be 80 | either inputs or outputs. 81 | @param dir[in] Direction of all the pins of the device (INPUT, OUTPUT). 82 | */ 83 | void portMode ( uint8_t dir ); 84 | 85 | /*! 86 | @method 87 | @abstract Reads all the pins of the device that are configured as INPUT. 88 | @discussion Reads from the device the status of the pins that are configured 89 | as INPUT. During initialization all pins are configured as INPUTs by default. 90 | Please refer to pinMode or portMode. 91 | 92 | @param none 93 | */ 94 | uint8_t read ( void ); 95 | 96 | /*! 97 | @method 98 | @abstract Read a pin from the device. 99 | @discussion Reads a particular pin from the device. To read a particular 100 | pin it has to be configured as INPUT. During initialization all pins are 101 | configured as INPUTs by default. Please refer to pinMode or portMode. 102 | 103 | @param pin[in] Pin from the port to read its status. Range (0..7) 104 | @result Returns the pin status (HIGH, LOW) if the pin is configured 105 | as an output, reading its value will always return LOW regardless of its 106 | real state. 107 | */ 108 | uint8_t digitalRead ( uint8_t pin ); 109 | 110 | /*! 111 | @method 112 | @abstract Write a value to the device. 113 | @discussion Writes to a set of pins in the device. The value is the binary 114 | representation of all the pins in device. The value written is masked with 115 | the configuration of the direction of the pins; to change the state of 116 | a particular pin with this method, such pin has to be configured as OUTPUT 117 | using the portMode or pinMode methods. If no pins have been configured as 118 | OUTPUTs this method will have no effect. 119 | 120 | @param value[in] value to be written to the device. 121 | @result 1 on success, 0 otherwise 122 | */ 123 | int write ( uint8_t value ); 124 | 125 | /*! 126 | @method 127 | @abstract Writes a digital level to a particular pin. 128 | @discussion Write a level to the indicated pin of the device. For this 129 | method to have effect, the pin has to be configured as OUTPUT using the 130 | pinMode or portMode methods. 131 | 132 | @param pin[in] device pin to change level. Range (0..7). 133 | @para level[in] logic level to set the pin at (HIGH, LOW). 134 | @result 1 on success, 0 otherwise. 135 | */ 136 | int digitalWrite ( uint8_t pin, uint8_t level ); 137 | 138 | 139 | 140 | private: 141 | uint8_t _shadow; // Shadow output 142 | uint8_t _dirMask; // Direction mask 143 | uint8_t _i2cAddr; // I2C address 144 | bool _initialised; // Initialised object 145 | 146 | }; 147 | 148 | #endif -------------------------------------------------------------------------------- /LiquidCrystal/LiquidCrystal_SR2W.cpp: -------------------------------------------------------------------------------- 1 | // --------------------------------------------------------------------------- 2 | // Created/Adapted by Bill Perry 2012-03-16 3 | // Copyright 2012 - Under creative commons license 3.0: 4 | // Attribution-ShareAlike CC BY-SA 5 | // 6 | // This software is furnished "as is", without technical support, and with no 7 | // warranty, express or implied, as to its usefulness for any purpose. 8 | // 9 | // Thread Safe: No 10 | // Extendable: Yes 11 | // 12 | // @file LiquidCrystal_SR2W.cpp 13 | // Connects a hd44780 LCD using 2 pins from the Arduino, via an 8-bit 14 | // ShiftRegister (SR2W from now on). 15 | // 16 | // @brief 17 | // This is a port of the ShiftRegLCD library from raron and ported to the 18 | // LCD library. 19 | // 20 | // 21 | // See the corresponding SR2W header file for full details. 22 | // 23 | // History 24 | // 2012.03.29 bperrybap - Fixed incorrect use of 5x10 for default font 25 | // (now matches original LQ library) 26 | // Fixed typo in SR2W mask define names 27 | // changed default backlight state to on 28 | // 2012.03.16 bperrybap - created/modified from SR sources to create SR2W 29 | // @author B. Perry - bperrybap@opensource.billsworld.billandterrie.com 30 | // --------------------------------------------------------------------------- 31 | 32 | #include "LiquidCrystal_SR2W.h" 33 | 34 | // CONSTRUCTORS 35 | // --------------------------------------------------------------------------- 36 | // Assuming 1 line 8 pixel high font 37 | LiquidCrystal_SR2W::LiquidCrystal_SR2W (uint8_t srdata, uint8_t srclock, t_backlighPol blpol) 38 | { 39 | init ( srdata, srclock, blpol, 1, 0 ); 40 | } 41 | 42 | 43 | // PRIVATE METHODS 44 | // --------------------------------------------------------------------------- 45 | 46 | // 47 | // init 48 | void LiquidCrystal_SR2W::init(uint8_t srdata, uint8_t srclock, t_backlighPol blpol, uint8_t lines, uint8_t font) 49 | { 50 | _srDataRegister = fio_pinToOutputRegister(srdata); 51 | _srDataMask = fio_pinToBit(srdata); 52 | _srClockRegister = fio_pinToOutputRegister(srclock); 53 | _srClockMask = fio_pinToBit(srclock); 54 | 55 | _blPolarity = blpol; 56 | 57 | _displayfunction = LCD_4BITMODE | LCD_1LINE | LCD_5x8DOTS; 58 | 59 | backlight(); // set default backlight state to on 60 | } 61 | 62 | // 63 | // loadSR 64 | void LiquidCrystal_SR2W::loadSR(uint8_t val) 65 | { 66 | // Clear to keep Enable LOW while clocking in new bits 67 | fio_shiftOut(_srDataRegister, _srDataMask, _srClockRegister, _srClockMask); 68 | 69 | 70 | // clock out SR data byte 71 | fio_shiftOut(_srDataRegister, _srDataMask, _srClockRegister, _srClockMask, val, MSBFIRST); 72 | 73 | 74 | // strobe LCD enable which can now be toggled by the data line 75 | ATOMIC_BLOCK(ATOMIC_RESTORESTATE) 76 | { 77 | fio_digitalWrite_HIGH(_srDataRegister, _srDataMask); 78 | waitUsec (1); // enable pulse must be >450ns 79 | fio_digitalWrite_SWITCHTO(_srDataRegister, _srDataMask, LOW); 80 | } // end critical section 81 | } 82 | 83 | // PUBLIC METHODS 84 | // --------------------------------------------------------------------------- 85 | 86 | 87 | /************ low level data pushing commands **********/ 88 | // 89 | // send 90 | void LiquidCrystal_SR2W::send(uint8_t value, uint8_t mode) 91 | { 92 | uint8_t myMode = ( mode == DATA ) ? SR2W_RS_MASK : 0; 93 | 94 | myMode = myMode | SR2W_EN_MASK | _blMask; 95 | 96 | if ( mode != FOUR_BITS ) 97 | { 98 | loadSR(myMode | ((value >> 1) & SR2W_DATA_MASK)); // upper nibble 99 | } 100 | 101 | loadSR(myMode | ((value << 3) & SR2W_DATA_MASK)); // lower nibble 102 | 103 | /* 104 | * Don't call waitUsec() 105 | * do our own delay optmization since this code is so fast it needs some added delay 106 | * even on slower AVRs. 107 | */ 108 | #if (F_CPU <= 16000000) 109 | delayMicroseconds ( 10 ); // commands & data writes need > 37us to complete 110 | #else 111 | delayMicroseconds ( 37 ); // commands & data writes need > 37us to complete 112 | #endif 113 | } 114 | 115 | // 116 | // setBacklight 117 | void LiquidCrystal_SR2W::setBacklight ( uint8_t value ) 118 | { 119 | // Check for polarity to configure mask accordingly 120 | // ---------------------------------------------------------- 121 | if ( ((_blPolarity == POSITIVE) && (value > 0)) || 122 | ((_blPolarity == NEGATIVE ) && ( value == 0 )) ) 123 | { 124 | _blMask = SR2W_BL_MASK; 125 | } 126 | else 127 | { 128 | _blMask = 0; 129 | } 130 | 131 | // send dummy data of blMask to set BL pin 132 | // Note: loadSR() will strobe the data line trying to pulse EN 133 | // but E will not strobe because the EN output bit is not set. 134 | loadSR(_blMask); 135 | } 136 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/_i2_c_i_o_8cpp.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | LCD Library: /Users/fmalpartida/development/ardWorkspace/LiquidCrystal_I2C/LiquiCrystal_I2C/I2CIO.cpp File Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 |
17 |
18 | 19 | 20 | 21 | 22 | 26 | 27 | 28 |
23 |
LCD Library 1.2.1
24 |
LCD Library - LCD control class hierarchy library. Drop in replacement for the LiquidCrystal Library.
25 |
29 |
30 | 53 | 59 |
60 |
61 |
62 |
/Users/fmalpartida/development/ardWorkspace/LiquidCrystal_I2C/LiquiCrystal_I2C/I2CIO.cpp File Reference
63 |
64 |
65 |
#include <WProgram.h>
66 | #include <inttypes.h>
67 | #include <../Wire/Wire.h>
68 | #include "I2CIO.h"
69 |
70 |

Go to the source code of this file.

71 | 72 |
73 |
74 | 75 | 80 | 81 | 82 |
83 | 86 |
87 | 88 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/_l_c_d_8cpp.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | LCD Library: /Users/fmalpartida/development/ardWorkspace/LiquidCrystal_I2C/LiquiCrystal_I2C/LCD.cpp File Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 |
17 |
18 | 19 | 20 | 21 | 22 | 26 | 27 | 28 |
23 |
LCD Library 1.2.1
24 |
LCD Library - LCD control class hierarchy library. Drop in replacement for the LiquidCrystal Library.
25 |
29 |
30 | 53 | 59 |
60 |
61 |
62 |
/Users/fmalpartida/development/ardWorkspace/LiquidCrystal_I2C/LiquiCrystal_I2C/LCD.cpp File Reference
63 |
64 |
65 |
#include <stdio.h>
66 | #include <string.h>
67 | #include <inttypes.h>
68 | #include <WProgram.h>
69 | #include "LCD.h"
70 |
71 |

Go to the source code of this file.

72 | 73 |
74 |
75 | 76 | 81 | 82 | 83 |
84 | 87 |
88 | 89 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/_liquid_crystal___s_r2_w_8cpp.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | LCD Library: /Users/fmalpartida/development/ardWorkspace/LiquidCrystal_I2C/LiquiCrystal_I2C/LiquidCrystal_SR2W.cpp File Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 |
17 |
18 | 19 | 20 | 21 | 22 | 26 | 27 | 28 |
23 |
LCD Library 1.2.1
24 |
LCD Library - LCD control class hierarchy library. Drop in replacement for the LiquidCrystal Library.
25 |
29 |
30 | 53 | 59 |
60 |
61 |
62 |
/Users/fmalpartida/development/ardWorkspace/LiquidCrystal_I2C/LiquiCrystal_I2C/LiquidCrystal_SR2W.cpp File Reference
63 |
64 |
65 |
#include "LiquidCrystal_SR2W.h"
66 |
67 |

Go to the source code of this file.

68 | 69 |
70 |
71 | 72 | 77 | 78 | 79 |
80 | 83 |
84 | 85 | 88 | 89 | 90 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/_liquid_crystal___s_r_8cpp.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | LCD Library: /Users/fmalpartida/development/ardWorkspace/LiquidCrystal_I2C/LiquiCrystal_I2C/LiquidCrystal_SR.cpp File Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 |
17 |
18 | 19 | 20 | 21 | 22 | 26 | 27 | 28 |
23 |
LCD Library 1.2.1
24 |
LCD Library - LCD control class hierarchy library. Drop in replacement for the LiquidCrystal Library.
25 |
29 |
30 | 53 | 59 |
60 |
61 |
62 |
/Users/fmalpartida/development/ardWorkspace/LiquidCrystal_I2C/LiquiCrystal_I2C/LiquidCrystal_SR.cpp File Reference
63 |
64 |
65 |
#include <stdio.h>
66 | #include <string.h>
67 | #include <inttypes.h>
68 | #include <WProgram.h>
69 | #include "LiquidCrystal_SR.h"
70 | #include "FastIO.h"
71 |
72 |

Go to the source code of this file.

73 | 74 |
75 |
76 | 77 | 82 | 83 | 84 |
85 | 88 |
89 | 90 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/_liquid_crystal___s_r___l_c_d3_8h.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | LCD Library: /Users/fmalpartida/development/ardWorkspace/LiquidCrystal_I2C/LiquiCrystal_I2C/LiquidCrystal_SR_LCD3.h File Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 |
17 |
18 | 19 | 20 | 21 | 22 | 26 | 27 | 28 |
23 |
LCD Library 1.2.1
24 |
LCD Library - LCD control class hierarchy library. Drop in replacement for the LiquidCrystal Library.
25 |
29 |
30 | 53 | 59 |
60 |
61 |
62 | Classes
63 |
64 |
/Users/fmalpartida/development/ardWorkspace/LiquidCrystal_I2C/LiquiCrystal_I2C/LiquidCrystal_SR_LCD3.h File Reference
65 |
66 |
67 |
#include <inttypes.h>
68 | #include "LCD.h"
69 |
70 |

Go to the source code of this file.

71 | 72 | 74 | 75 |

73 | Classes

class  LiquidCrystal_SR_LCD3
76 |
77 | 78 | 83 | 84 | 85 |
86 | 89 |
90 | 91 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/bc_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/bc_s.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/class_l_c_d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/class_l_c_d.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/class_liquid_crystal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/class_liquid_crystal.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/class_liquid_crystal___i2_c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/class_liquid_crystal___i2_c.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/class_liquid_crystal___s_r.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/class_liquid_crystal___s_r.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/class_liquid_crystal___s_r2_w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/class_liquid_crystal___s_r2_w.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/class_liquid_crystal___s_r3_w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/class_liquid_crystal___s_r3_w.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/class_liquid_crystal___s_r___l_c_d3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/class_liquid_crystal___s_r___l_c_d3.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/closed.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/doxygen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/doxygen.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/globals_enum.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | LCD Library: File Members 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 |
17 |
18 | 19 | 20 | 21 | 22 | 26 | 27 | 28 |
23 |
LCD Library 1.2.1
24 |
LCD Library - LCD control class hierarchy library. Drop in replacement for the LiquidCrystal Library.
25 |
29 |
30 | 53 | 59 | 69 |
70 |
71 |  
    72 |
  • t_backlighPol 73 | : LCD.h 74 |
  • 75 |
76 |
77 | 78 | 83 | 84 | 85 |
86 | 89 |
90 | 91 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/globals_eval.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | LCD Library: File Members 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 |
17 |
18 | 19 | 20 | 21 | 22 | 26 | 27 | 28 |
23 |
LCD Library 1.2.1
24 |
LCD Library - LCD control class hierarchy library. Drop in replacement for the LiquidCrystal Library.
25 |
29 |
30 | 53 | 59 | 69 |
70 |
71 |  
    72 |
  • NEGATIVE 73 | : LCD.h 74 |
  • 75 |
  • POSITIVE 76 | : LCD.h 77 |
  • 78 |
79 |
80 | 81 | 86 | 87 | 88 |
89 | 92 |
93 | 94 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/globals_type.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | LCD Library: File Members 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 |
17 |
18 | 19 | 20 | 21 | 22 | 26 | 27 | 28 |
23 |
LCD Library 1.2.1
24 |
LCD Library - LCD control class hierarchy library. Drop in replacement for the LiquidCrystal Library.
25 |
29 |
30 | 53 | 59 | 69 |
70 |
71 |   79 |
80 | 81 | 86 | 87 | 88 |
89 | 92 |
93 | 94 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/hierarchy.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | LCD Library: Class Hierarchy 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 |
17 |
18 | 19 | 20 | 21 | 22 | 26 | 27 | 28 |
23 |
LCD Library 1.2.1
24 |
LCD Library - LCD control class hierarchy library. Drop in replacement for the LiquidCrystal Library.
25 |
29 |
30 | 53 | 61 |
62 |
63 |
64 |
Class Hierarchy
65 |
66 |
67 |
This inheritance list is sorted roughly, but not completely, alphabetically:
78 |
79 | 80 | 85 | 86 | 87 |
88 | 91 |
92 | 93 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | LCD Library: Main Page 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 |
17 |
18 | 19 | 20 | 21 | 22 | 26 | 27 | 28 |
23 |
LCD Library 1.2.1
24 |
LCD Library - LCD control class hierarchy library. Drop in replacement for the LiquidCrystal Library.
25 |
29 |
30 | 53 |
54 |
55 |
56 |
LCD Library Documentation
57 |
58 |
59 |
60 | 61 | 66 | 67 | 68 |
69 | 72 |
73 | 74 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/installdox: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | %subst = ( ); 4 | $quiet = 0; 5 | 6 | while ( @ARGV ) { 7 | $_ = shift @ARGV; 8 | if ( s/^-// ) { 9 | if ( /^l(.*)/ ) { 10 | $v = ($1 eq "") ? shift @ARGV : $1; 11 | ($v =~ /\/$/) || ($v .= "/"); 12 | $_ = $v; 13 | if ( /(.+)\@(.+)/ ) { 14 | if ( exists $subst{$1} ) { 15 | $subst{$1} = $2; 16 | } else { 17 | print STDERR "Unknown tag file $1 given with option -l\n"; 18 | &usage(); 19 | } 20 | } else { 21 | print STDERR "Argument $_ is invalid for option -l\n"; 22 | &usage(); 23 | } 24 | } 25 | elsif ( /^q/ ) { 26 | $quiet = 1; 27 | } 28 | elsif ( /^\?|^h/ ) { 29 | &usage(); 30 | } 31 | else { 32 | print STDERR "Illegal option -$_\n"; 33 | &usage(); 34 | } 35 | } 36 | else { 37 | push (@files, $_ ); 38 | } 39 | } 40 | 41 | foreach $sub (keys %subst) 42 | { 43 | if ( $subst{$sub} eq "" ) 44 | { 45 | print STDERR "No substitute given for tag file `$sub'\n"; 46 | &usage(); 47 | } 48 | elsif ( ! $quiet && $sub ne "_doc" && $sub ne "_cgi" ) 49 | { 50 | print "Substituting $subst{$sub} for each occurrence of tag file $sub\n"; 51 | } 52 | } 53 | 54 | if ( ! @files ) { 55 | if (opendir(D,".")) { 56 | foreach $file ( readdir(D) ) { 57 | $match = ".html"; 58 | next if ( $file =~ /^\.\.?$/ ); 59 | ($file =~ /$match/) && (push @files, $file); 60 | ($file =~ /\.svg/) && (push @files, $file); 61 | ($file =~ "navtree.js") && (push @files, $file); 62 | } 63 | closedir(D); 64 | } 65 | } 66 | 67 | if ( ! @files ) { 68 | print STDERR "Warning: No input files given and none found!\n"; 69 | } 70 | 71 | foreach $f (@files) 72 | { 73 | if ( ! $quiet ) { 74 | print "Editing: $f...\n"; 75 | } 76 | $oldf = $f; 77 | $f .= ".bak"; 78 | unless (rename $oldf,$f) { 79 | print STDERR "Error: cannot rename file $oldf\n"; 80 | exit 1; 81 | } 82 | if (open(F,"<$f")) { 83 | unless (open(G,">$oldf")) { 84 | print STDERR "Error: opening file $oldf for writing\n"; 85 | exit 1; 86 | } 87 | if ($oldf ne "tree.js") { 88 | while () { 89 | s/doxygen\=\"([^ \"\:\t\>\<]*)\:([^ \"\t\>\<]*)\" (xlink:href|href|src)=\"\2/doxygen\=\"$1:$subst{$1}\" \3=\"$subst{$1}/g; 90 | print G "$_"; 91 | } 92 | } 93 | else { 94 | while () { 95 | s/\"([^ \"\:\t\>\<]*)\:([^ \"\t\>\<]*)\", \"\2/\"$1:$subst{$1}\" ,\"$subst{$1}/g; 96 | print G "$_"; 97 | } 98 | } 99 | } 100 | else { 101 | print STDERR "Warning file $f does not exist\n"; 102 | } 103 | unlink $f; 104 | } 105 | 106 | sub usage { 107 | print STDERR "Usage: installdox [options] [html-file [html-file ...]]\n"; 108 | print STDERR "Options:\n"; 109 | print STDERR " -l tagfile\@linkName tag file + URL or directory \n"; 110 | print STDERR " -q Quiet mode\n\n"; 111 | exit 1; 112 | } 113 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/logoGoogle.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/logoGoogle.jpg -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/nav_f.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/nav_f.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/nav_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/nav_h.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/open.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/all_5f.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | _cols 13 | LCD 14 |
15 |
16 |
17 |
18 | _displaycontrol 19 | LCD 20 |
21 |
22 |
23 |
24 | _displayfunction 25 | LCD 26 |
27 |
28 |
29 |
30 | _displaymode 31 | LCD 32 |
33 |
34 |
35 |
36 | _I2CIO_VERSION 37 | I2CIO.h 38 |
39 |
40 |
41 |
42 | _numlines 43 | LCD 44 |
45 |
46 |
47 |
48 | _polarity 49 | LCD 50 |
51 |
52 |
Searching...
53 |
No Matches
54 | 60 |
61 | 62 | 63 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/all_61.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | ATOMIC_BLOCK 13 | FastIO.h 14 |
15 |
16 |
17 |
18 | ATOMIC_RESTORESTATE 19 | FastIO.h 20 |
21 |
22 |
23 |
24 | autoscroll 25 | LCD 26 |
27 |
28 |
Searching...
29 |
No Matches
30 | 36 |
37 | 38 | 39 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/all_62.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | backlight 13 | LCD 14 |
15 |
16 |
17 |
18 | BACKLIGHT_OFF 19 | LCD.h 20 |
21 |
22 |
23 |
24 | BACKLIGHT_ON 25 | LCD.h 26 |
27 |
28 |
29 |
30 | begin 31 | 36 |
37 |
38 | 44 |
Searching...
45 |
No Matches
46 | 52 |
53 | 54 | 55 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/all_63.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | clear 13 | LCD 14 |
15 |
16 |
17 |
18 | COMMAND 19 | LCD.h 20 |
21 |
22 |
23 |
24 | createChar 25 | LCD 26 |
27 |
28 |
29 |
30 | cursor 31 | LCD 32 |
33 |
34 |
Searching...
35 |
No Matches
36 | 42 |
43 | 44 | 45 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/all_65.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 | 18 |
19 |
20 |
21 | EXEC_TIME 22 | LiquidCrystal.h 23 |
24 |
25 |
Searching...
26 |
No Matches
27 | 33 |
34 | 35 | 36 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/all_68.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | home 13 | LCD 14 |
15 |
16 |
17 |
18 | HOME_CLEAR_EXEC 19 | LCD.h 20 |
21 |
22 |
Searching...
23 |
No Matches
24 | 30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/all_69.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | I2CIO 13 |
14 | I2CIO 15 | I2CIO::I2CIO() 16 |
17 |
18 |
19 |
20 |
21 | I2CIO.cpp 22 |
23 |
24 |
25 |
26 | I2CIO.h 27 |
28 |
29 |
Searching...
30 |
No Matches
31 | 37 |
38 | 39 | 40 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/all_6d.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | moveCursorLeft 13 | LCD 14 |
15 |
16 |
17 |
18 | moveCursorRight 19 | LCD 20 |
21 |
22 |
Searching...
23 |
No Matches
24 | 30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/all_6e.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | NEGATIVE 13 | LCD.h 14 |
15 |
16 |
17 |
18 | noAutoscroll 19 | LCD 20 |
21 |
22 |
23 |
24 | noBacklight 25 | LCD 26 |
27 |
28 | 34 |
35 |
36 | noCursor 37 | LCD 38 |
39 |
40 |
41 |
42 | noDisplay 43 | LCD 44 |
45 |
46 |
Searching...
47 |
No Matches
48 | 54 |
55 | 56 | 57 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/all_6f.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | off 13 | LCD 14 |
15 |
16 |
17 |
18 | on 19 | LCD 20 |
21 |
22 |
Searching...
23 |
No Matches
24 | 30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/all_70.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | pinMode 13 | I2CIO 14 |
15 |
16 |
17 |
18 | portMode 19 | I2CIO 20 |
21 |
22 |
23 |
24 | POSITIVE 25 | LCD.h 26 |
27 |
28 |
Searching...
29 |
No Matches
30 | 36 |
37 | 38 | 39 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/all_72.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | read 13 | I2CIO 14 |
15 |
16 |
17 |
18 | rightToLeft 19 | LCD 20 |
21 |
22 |
23 | 30 |
31 |
32 | 39 |
40 |
Searching...
41 |
No Matches
42 | 48 |
49 | 50 | 51 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/all_74.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | t_backlighPol 13 | LCD.h 14 |
15 |
16 |
17 |
18 | TWO_WIRE 19 | LiquidCrystal_SR.h 20 |
21 |
22 |
Searching...
23 |
No Matches
24 | 30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/all_77.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | waitUsec 13 | LCD.h 14 |
15 |
16 |
17 |
18 | write 19 |
20 | I2CIO::write() 21 | LCD::write() 22 |
23 |
24 |
25 |
Searching...
26 |
No Matches
27 | 33 |
34 | 35 | 36 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/classes_69.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | I2CIO 13 |
14 |
15 |
Searching...
16 |
No Matches
17 | 23 |
24 | 25 | 26 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/classes_6c.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | LCD 13 |
14 |
15 |
16 |
17 | LiquidCrystal 18 |
19 |
20 |
21 |
22 | LiquidCrystal_I2C 23 |
24 |
25 |
26 |
27 | LiquidCrystal_SR 28 |
29 |
30 |
31 |
32 | LiquidCrystal_SR2W 33 |
34 |
35 |
36 |
37 | LiquidCrystal_SR3W 38 |
39 |
40 |
Searching...
41 |
No Matches
42 | 48 |
49 | 50 | 51 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/search/close.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/defines_5f.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | _I2CIO_VERSION 13 | I2CIO.h 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/defines_61.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | ATOMIC_BLOCK 13 | FastIO.h 14 |
15 |
16 |
17 |
18 | ATOMIC_RESTORESTATE 19 | FastIO.h 20 |
21 |
22 |
Searching...
23 |
No Matches
24 | 30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/defines_62.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | BACKLIGHT_OFF 13 | LCD.h 14 |
15 |
16 |
17 |
18 | BACKLIGHT_ON 19 | LCD.h 20 |
21 |
22 |
Searching...
23 |
No Matches
24 | 30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/defines_63.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | COMMAND 13 | LCD.h 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/defines_64.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 | 18 |
19 |
20 | 27 |
28 |
29 | 36 |
37 |
38 | 45 |
46 |
47 |
48 | DATA 49 | LCD.h 50 |
51 |
52 |
Searching...
53 |
No Matches
54 | 60 |
61 | 62 | 63 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/defines_65.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 | 18 |
19 |
20 |
21 | EXEC_TIME 22 | LiquidCrystal.h 23 |
24 |
25 |
Searching...
26 |
No Matches
27 | 33 |
34 | 35 | 36 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/defines_66.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | fio_digitalWrite_HIGH 13 | FastIO.h 14 |
15 |
16 |
17 |
18 | fio_digitalWrite_LOW 19 | FastIO.h 20 |
21 |
22 |
23 |
24 | fio_digitalWrite_SWITCH 25 | FastIO.h 26 |
27 |
28 |
29 |
30 | fio_digitalWrite_SWITCHTO 31 | FastIO.h 32 |
33 |
34 |
35 |
36 | FIO_FALLBACK 37 | FastIO.h 38 |
39 |
40 |
41 |
42 | FOUR_BITS 43 | LCD.h 44 |
45 |
46 |
Searching...
47 |
No Matches
48 | 54 |
55 | 56 | 57 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/defines_68.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | HOME_CLEAR_EXEC 13 | LCD.h 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/defines_72.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 | 18 |
19 |
20 | 27 |
28 |
Searching...
29 |
No Matches
30 | 36 |
37 | 38 | 39 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/defines_73.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | SKIP 13 | FastIO.h 14 |
15 |
16 |
17 |
18 | SR2W_BL_MASK 19 | LiquidCrystal_SR2W.h 20 |
21 |
22 |
23 |
24 | SR2W_DATA_MASK 25 | LiquidCrystal_SR2W.h 26 |
27 |
28 |
29 |
30 | SR2W_EN_MASK 31 | LiquidCrystal_SR2W.h 32 |
33 |
34 |
35 |
36 | SR2W_RS_MASK 37 | LiquidCrystal_SR2W.h 38 |
39 |
40 |
41 |
42 | SR_EN_BIT 43 | LiquidCrystal_SR.h 44 |
45 |
46 |
47 |
48 | SR_RS_BIT 49 | LiquidCrystal_SR.h 50 |
51 |
52 |
Searching...
53 |
No Matches
54 | 60 |
61 | 62 | 63 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/defines_74.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | TWO_WIRE 13 | LiquidCrystal_SR.h 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/enums_74.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | t_backlighPol 13 | LCD.h 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/enumvalues_6e.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | NEGATIVE 13 | LCD.h 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/enumvalues_70.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | POSITIVE 13 | LCD.h 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/files_66.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | FastIO.cpp 13 |
14 |
15 |
16 |
17 | FastIO.h 18 |
19 |
20 |
Searching...
21 |
No Matches
22 | 28 |
29 | 30 | 31 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/files_69.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | I2CIO.cpp 13 |
14 |
15 |
16 |
17 | I2CIO.h 18 |
19 |
20 |
Searching...
21 |
No Matches
22 | 28 |
29 | 30 | 31 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/files_6c.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | LCD.cpp 13 |
14 |
15 |
16 |
17 | LCD.h 18 |
19 |
20 |
21 |
22 | LiquidCrystal.cpp 23 |
24 |
25 |
26 |
27 | LiquidCrystal.h 28 |
29 |
30 |
31 | 34 |
35 |
36 | 39 |
40 |
41 | 44 |
45 |
46 |
47 | LiquidCrystal_SR.h 48 |
49 |
50 |
51 | 54 |
55 |
56 | 59 |
60 |
61 | 64 |
65 |
66 | 69 |
70 |
Searching...
71 |
No Matches
72 | 78 |
79 | 80 | 81 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/functions_61.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | autoscroll 13 | LCD 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/functions_62.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | backlight 13 | LCD 14 |
15 |
16 |
17 |
18 | begin 19 | 24 |
25 |
26 | 32 |
Searching...
33 |
No Matches
34 | 40 |
41 | 42 | 43 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/functions_63.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | clear 13 | LCD 14 |
15 |
16 |
17 |
18 | createChar 19 | LCD 20 |
21 |
22 |
23 |
24 | cursor 25 | LCD 26 |
27 |
28 |
Searching...
29 |
No Matches
30 | 36 |
37 | 38 | 39 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/functions_64.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | digitalRead 13 | I2CIO 14 |
15 |
16 |
17 |
18 | digitalWrite 19 | I2CIO 20 |
21 |
22 |
23 |
24 | display 25 | LCD 26 |
27 |
28 |
Searching...
29 |
No Matches
30 | 36 |
37 | 38 | 39 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/functions_65.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | expanderWrite 13 | LiquidCrystal_I2C 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/functions_68.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | home 13 | LCD 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/functions_69.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | I2CIO 13 | I2CIO 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/functions_6d.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | moveCursorLeft 13 | LCD 14 |
15 |
16 |
17 |
18 | moveCursorRight 19 | LCD 20 |
21 |
22 |
Searching...
23 |
No Matches
24 | 30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/functions_6e.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | noAutoscroll 13 | LCD 14 |
15 |
16 |
17 |
18 | noBacklight 19 | LCD 20 |
21 |
22 | 28 |
29 |
30 | noCursor 31 | LCD 32 |
33 |
34 |
35 |
36 | noDisplay 37 | LCD 38 |
39 |
40 |
Searching...
41 |
No Matches
42 | 48 |
49 | 50 | 51 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/functions_6f.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | off 13 | LCD 14 |
15 |
16 |
17 |
18 | on 19 | LCD 20 |
21 |
22 |
Searching...
23 |
No Matches
24 | 30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/functions_70.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | pinMode 13 | I2CIO 14 |
15 |
16 |
17 |
18 | portMode 19 | I2CIO 20 |
21 |
22 |
Searching...
23 |
No Matches
24 | 30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/functions_72.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | read 13 | I2CIO 14 |
15 |
16 |
17 |
18 | rightToLeft 19 | LCD 20 |
21 |
22 |
Searching...
23 |
No Matches
24 | 30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/functions_77.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | waitUsec 13 | LCD.h 14 |
15 |
16 |
17 |
18 | write 19 |
20 | I2CIO::write() 21 | LCD::write() 22 |
23 |
24 |
25 |
Searching...
26 |
No Matches
27 | 33 |
34 | 35 | 36 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/mag_sel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/search/mag_sel.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/nomatches.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
No Matches
10 |
11 | 12 | 13 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/search.css: -------------------------------------------------------------------------------- 1 | /*---------------- Search Box */ 2 | 3 | #FSearchBox { 4 | float: left; 5 | } 6 | 7 | #searchli { 8 | float: right; 9 | display: block; 10 | width: 170px; 11 | height: 36px; 12 | } 13 | 14 | #MSearchBox { 15 | white-space : nowrap; 16 | position: absolute; 17 | float: none; 18 | display: inline; 19 | margin-top: 8px; 20 | right: 0px; 21 | width: 170px; 22 | z-index: 102; 23 | } 24 | 25 | #MSearchBox .left 26 | { 27 | display:block; 28 | position:absolute; 29 | left:10px; 30 | width:20px; 31 | height:19px; 32 | background:url('search_l.png') no-repeat; 33 | background-position:right; 34 | } 35 | 36 | #MSearchSelect { 37 | display:block; 38 | position:absolute; 39 | width:20px; 40 | height:19px; 41 | } 42 | 43 | .left #MSearchSelect { 44 | left:4px; 45 | } 46 | 47 | .right #MSearchSelect { 48 | right:5px; 49 | } 50 | 51 | #MSearchField { 52 | display:block; 53 | position:absolute; 54 | height:19px; 55 | background:url('search_m.png') repeat-x; 56 | border:none; 57 | width:116px; 58 | margin-left:20px; 59 | padding-left:4px; 60 | color: #909090; 61 | outline: none; 62 | font: 9pt Arial, Verdana, sans-serif; 63 | } 64 | 65 | #FSearchBox #MSearchField { 66 | margin-left:15px; 67 | } 68 | 69 | #MSearchBox .right { 70 | display:block; 71 | position:absolute; 72 | right:10px; 73 | top:0px; 74 | width:20px; 75 | height:19px; 76 | background:url('search_r.png') no-repeat; 77 | background-position:left; 78 | } 79 | 80 | #MSearchClose { 81 | display: none; 82 | position: absolute; 83 | top: 4px; 84 | background : none; 85 | border: none; 86 | margin: 0px 4px 0px 0px; 87 | padding: 0px 0px; 88 | outline: none; 89 | } 90 | 91 | .left #MSearchClose { 92 | left: 6px; 93 | } 94 | 95 | .right #MSearchClose { 96 | right: 2px; 97 | } 98 | 99 | .MSearchBoxActive #MSearchField { 100 | color: #000000; 101 | } 102 | 103 | /*---------------- Search filter selection */ 104 | 105 | #MSearchSelectWindow { 106 | display: none; 107 | position: absolute; 108 | left: 0; top: 0; 109 | border: 1px solid #90A5CE; 110 | background-color: #F9FAFC; 111 | z-index: 1; 112 | padding-top: 4px; 113 | padding-bottom: 4px; 114 | -moz-border-radius: 4px; 115 | -webkit-border-top-left-radius: 4px; 116 | -webkit-border-top-right-radius: 4px; 117 | -webkit-border-bottom-left-radius: 4px; 118 | -webkit-border-bottom-right-radius: 4px; 119 | -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); 120 | } 121 | 122 | .SelectItem { 123 | font: 8pt Arial, Verdana, sans-serif; 124 | padding-left: 2px; 125 | padding-right: 12px; 126 | border: 0px; 127 | } 128 | 129 | span.SelectionMark { 130 | margin-right: 4px; 131 | font-family: monospace; 132 | outline-style: none; 133 | text-decoration: none; 134 | } 135 | 136 | a.SelectItem { 137 | display: block; 138 | outline-style: none; 139 | color: #000000; 140 | text-decoration: none; 141 | padding-left: 6px; 142 | padding-right: 12px; 143 | } 144 | 145 | a.SelectItem:focus, 146 | a.SelectItem:active { 147 | color: #000000; 148 | outline-style: none; 149 | text-decoration: none; 150 | } 151 | 152 | a.SelectItem:hover { 153 | color: #FFFFFF; 154 | background-color: #3D578C; 155 | outline-style: none; 156 | text-decoration: none; 157 | cursor: pointer; 158 | display: block; 159 | } 160 | 161 | /*---------------- Search results window */ 162 | 163 | iframe#MSearchResults { 164 | width: 60ex; 165 | height: 15em; 166 | } 167 | 168 | #MSearchResultsWindow { 169 | display: none; 170 | position: absolute; 171 | left: 0; top: 0; 172 | border: 1px solid #000; 173 | background-color: #EEF1F7; 174 | } 175 | 176 | /* ----------------------------------- */ 177 | 178 | 179 | #SRIndex { 180 | clear:both; 181 | padding-bottom: 15px; 182 | } 183 | 184 | .SREntry { 185 | font-size: 10pt; 186 | padding-left: 1ex; 187 | } 188 | 189 | .SRPage .SREntry { 190 | font-size: 8pt; 191 | padding: 1px 5px; 192 | } 193 | 194 | body.SRPage { 195 | margin: 5px 2px; 196 | } 197 | 198 | .SRChildren { 199 | padding-left: 3ex; padding-bottom: .5em 200 | } 201 | 202 | .SRPage .SRChildren { 203 | display: none; 204 | } 205 | 206 | .SRSymbol { 207 | font-weight: bold; 208 | color: #425E97; 209 | font-family: Arial, Verdana, sans-serif; 210 | text-decoration: none; 211 | outline: none; 212 | } 213 | 214 | a.SRScope { 215 | display: block; 216 | color: #425E97; 217 | font-family: Arial, Verdana, sans-serif; 218 | text-decoration: none; 219 | outline: none; 220 | } 221 | 222 | a.SRSymbol:focus, a.SRSymbol:active, 223 | a.SRScope:focus, a.SRScope:active { 224 | text-decoration: underline; 225 | } 226 | 227 | .SRPage .SRStatus { 228 | padding: 2px 5px; 229 | font-size: 8pt; 230 | font-style: italic; 231 | } 232 | 233 | .SRResult { 234 | display: none; 235 | } 236 | 237 | DIV.searchresults { 238 | margin-left: 10px; 239 | margin-right: 10px; 240 | } 241 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/search_l.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/search/search_l.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/search_m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/search/search_m.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/search_r.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/search/search_r.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/typedefs_66.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | fio_bit 13 | FastIO.h 14 |
15 |
16 |
17 |
18 | fio_register 19 | FastIO.h 20 |
21 |
22 |
Searching...
23 |
No Matches
24 | 30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/search/variables_5f.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | _cols 13 | LCD 14 |
15 |
16 |
17 |
18 | _displaycontrol 19 | LCD 20 |
21 |
22 |
23 |
24 | _displayfunction 25 | LCD 26 |
27 |
28 |
29 |
30 | _displaymode 31 | LCD 32 |
33 |
34 |
35 |
36 | _numlines 37 | LCD 38 |
39 |
40 |
41 |
42 | _polarity 43 | LCD 44 |
45 |
46 |
Searching...
47 |
No Matches
48 | 54 |
55 | 56 | 57 | -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/tab_a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/tab_a.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/tab_b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/tab_b.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/tab_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/tab_h.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/tab_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenschr/Arduino-libraries/34080e6842ba1065b6f92abccbc9021f53123cb9/LiquidCrystal/docs/html/tab_s.png -------------------------------------------------------------------------------- /LiquidCrystal/docs/html/tabs.css: -------------------------------------------------------------------------------- 1 | .tabs, .tabs2, .tabs3 { 2 | background-image: url('tab_b.png'); 3 | width: 100%; 4 | z-index: 101; 5 | font-size: 13px; 6 | } 7 | 8 | .tabs2 { 9 | font-size: 10px; 10 | } 11 | .tabs3 { 12 | font-size: 9px; 13 | } 14 | 15 | .tablist { 16 | margin: 0; 17 | padding: 0; 18 | display: table; 19 | } 20 | 21 | .tablist li { 22 | float: left; 23 | display: table-cell; 24 | background-image: url('tab_b.png'); 25 | line-height: 36px; 26 | list-style: none; 27 | } 28 | 29 | .tablist a { 30 | display: block; 31 | padding: 0 20px; 32 | font-weight: bold; 33 | background-image:url('tab_s.png'); 34 | background-repeat:no-repeat; 35 | background-position:right; 36 | color: #283A5D; 37 | text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); 38 | text-decoration: none; 39 | outline: none; 40 | } 41 | 42 | .tabs3 .tablist a { 43 | padding: 0 10px; 44 | } 45 | 46 | .tablist a:hover { 47 | background-image: url('tab_h.png'); 48 | background-repeat:repeat-x; 49 | color: #fff; 50 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); 51 | text-decoration: none; 52 | } 53 | 54 | .tablist li.current a { 55 | background-image: url('tab_a.png'); 56 | background-repeat:repeat-x; 57 | color: #fff; 58 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); 59 | } 60 | -------------------------------------------------------------------------------- /LiquidCrystal/examples/HelloWorld_4bit/HelloWorld_4bit.pde: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | 5 | #define CONTRAST_PIN 9 6 | #define BACKLIGHT_PIN 7 7 | #define CONTRAST 110 8 | LiquidCrystal lcd(12, 11, 5, 4, 3, 2, BACKLIGH_PIN, POSITIVE ); 9 | 10 | 11 | // Creat a set of new characters 12 | byte smiley[8] = { 13 | 0b00000, 14 | 0b00000, 15 | 0b01010, 16 | 0b00000, 17 | 0b00000, 18 | 0b10001, 19 | 0b01110, 20 | 0b00000 21 | }; 22 | 23 | byte armsUp[8] = { 24 | 0b00100, 25 | 0b01010, 26 | 0b00100, 27 | 0b10101, 28 | 0b01110, 29 | 0b00100, 30 | 0b00100, 31 | 0b01010 32 | }; 33 | 34 | byte frownie[8] = { 35 | 0b00000, 36 | 0b00000, 37 | 0b01010, 38 | 0b00000, 39 | 0b00000, 40 | 0b00000, 41 | 0b01110, 42 | 0b10001 43 | }; 44 | 45 | void setup() 46 | { 47 | Serial.begin ( 57600 ); 48 | 49 | // Switch on the backlight and LCD contrast levels 50 | pinMode(CONTRAST_PIN, OUTPUT); 51 | analogWrite ( CONTRAST_PIN, CONTRAST ); 52 | 53 | //lcd.setBacklightPin ( BACKLIGHT_PIN, POSITIVE ); 54 | //lcd.setBacklight ( HIGH ); 55 | lcd.backlight(); 56 | 57 | lcd.begin(16,2); // initialize the lcd 58 | 59 | lcd.createChar (0, smiley); // load character to the LCD 60 | lcd.createChar (1, armsUp); // load character to the LCD 61 | lcd.createChar (2, frownie); // load character to the LCD 62 | 63 | lcd.home (); // go home 64 | lcd.print("Hello, ARDUINO "); 65 | lcd.setCursor ( 0, 1 ); // go to the next line 66 | lcd.print (" FORUM - fm "); 67 | } 68 | 69 | void loop() 70 | { 71 | // Do a little animation by writing to the same location 72 | lcd.setCursor ( 14, 1 ); 73 | lcd.print (char(2)); 74 | delay (200); 75 | lcd.setCursor ( 14, 1 ); 76 | lcd.print ( char(0)); 77 | delay (200); 78 | } 79 | -------------------------------------------------------------------------------- /LiquidCrystal/examples/HelloWorld_SR/HelloWorld_SR.pde: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | LiquidCrystal_SR lcd(8,7,TWO_WIRE); 5 | // | | 6 | // | \-- Clock Pin 7 | // \---- Data/Enable Pin 8 | 9 | // Creat a set of new characters 10 | byte armsUp[8] = {0b00100,0b01010,0b00100,0b10101,0b01110,0b00100,0b00100,0b01010}; 11 | byte armsDown[8] = {0b00100,0b01010,0b00100,0b00100,0b01110,0b10101,0b00100,0b01010}; 12 | 13 | void setup(){ 14 | 15 | lcd.begin(16,2); // initialize the lcd 16 | 17 | lcd.createChar (0, armsUp); // load character to the LCD 18 | lcd.createChar (1, armsDown); // load character to the LCD 19 | 20 | lcd.home (); // go home 21 | lcd.print("LiquidCrystal_SR"); 22 | } 23 | 24 | void loop(){ 25 | // Do a little animation 26 | for(int i = 0; i <= 15; i++) showHappyGuy(i); 27 | for(int i = 15; i >= 0; i--) showHappyGuy(i); 28 | } 29 | 30 | void showHappyGuy(int pos){ 31 | lcd.setCursor ( pos, 1 ); // go to position 32 | lcd.print(char(random(0,2))); // show one of the two custom characters 33 | delay(150); // wait so it can be seen 34 | lcd.setCursor ( pos, 1 ); // go to position again 35 | lcd.print(" "); // delete character 36 | } -------------------------------------------------------------------------------- /LiquidCrystal/examples/HelloWorld_i2c/HelloWorld_i2c.pde: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | 5 | 6 | #define BACKLIGHT_PIN 13 7 | 8 | LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C address 9 | 10 | //LiquidCrystal_I2C lcd(0x38, BACKLIGHT_PIN, POSITIVE); // Set the LCD I2C address 11 | 12 | 13 | // Creat a set of new characters 14 | const uint8_t charBitmap[][8] = { 15 | { 0xc, 0x12, 0x12, 0xc, 0, 0, 0, 0 }, 16 | { 0x6, 0x9, 0x9, 0x6, 0, 0, 0, 0 }, 17 | { 0x0, 0x6, 0x9, 0x9, 0x6, 0, 0, 0x0 }, 18 | { 0x0, 0xc, 0x12, 0x12, 0xc, 0, 0, 0x0 }, 19 | { 0x0, 0x0, 0xc, 0x12, 0x12, 0xc, 0, 0x0 }, 20 | { 0x0, 0x0, 0x6, 0x9, 0x9, 0x6, 0, 0x0 }, 21 | { 0x0, 0x0, 0x0, 0x6, 0x9, 0x9, 0x6, 0x0 }, 22 | { 0x0, 0x0, 0x0, 0xc, 0x12, 0x12, 0xc, 0x0 } 23 | 24 | }; 25 | 26 | void setup() 27 | { 28 | int charBitmapSize = (sizeof(charBitmap ) / sizeof (charBitmap[0])); 29 | 30 | // Switch on the backlight 31 | pinMode ( BACKLIGHT_PIN, OUTPUT ); 32 | digitalWrite ( BACKLIGHT_PIN, HIGH ); 33 | 34 | lcd.begin(16,2); // initialize the lcd 35 | 36 | for ( int i = 0; i < charBitmapSize; i++ ) 37 | { 38 | lcd.createChar ( i, (uint8_t *)charBitmap[i] ); 39 | } 40 | 41 | lcd.home (); // go home 42 | lcd.print("Hello, ARDUINO "); 43 | lcd.setCursor ( 0, 1 ); // go to the next line 44 | lcd.print (" FORUM - fm "); 45 | delay ( 1000 ); 46 | } 47 | 48 | void loop() 49 | { 50 | lcd.home (); 51 | // Do a little animation by writing to the same location 52 | for ( int i = 0; i < 2; i++ ) 53 | { 54 | for ( int j = 0; j < 16; j++ ) 55 | { 56 | lcd.print (char(random(7))); 57 | } 58 | lcd.setCursor ( 0, 1 ); 59 | } 60 | delay (200); 61 | } 62 | -------------------------------------------------------------------------------- /LiquidCrystal/examples/LCDiSpeed/LCDiSpeed.txt: -------------------------------------------------------------------------------- 1 | 16Mhz AVR 2 | Interface ByteXfer 16x2FPS Ftime 3 | ---------------------------------------------- 4 | 4BIT 338uS 86.92 11.51ms (orignal Liquid Crystal) 5 | 4BIT 98uS 298.58 3.35ms 6 | SR2W 76uS 388.62 2.57ms 7 | SR_2W 72uS 406.90 2.46ms 8 | SR_3W 61uS 480.03 2.08ms 9 | SR3W 102uS 287.92 3.47ms 10 | 11 | 12 | 80Mhz Pic32 (ChipKit Uno32) 13 | Interface ByteXfer 16x2FPS Ftime 14 | ---------------------------------------------- 15 | 4BIT 232uS 126.73 7.89ms (orignal mpide Liquid Crystal) 16 | 4BIT 57uS 517.41 1.93ms 17 | SR2W 53uS 557.35 1.79ms 18 | SR_2W 53uS 554.66 1.80ms 19 | SR_3W 50uS 591.40 1.69ms 20 | SR3W 56uS 524.91 1.91ms 21 | -------------------------------------------------------------------------------- /LiquidCrystal/examples/SerialDisplay/SerialDisplay.pde: -------------------------------------------------------------------------------- 1 | /* 2 | * Displays text sent over the serial port (e.g. from the Serial Monitor) on 3 | * an attached LCD. 4 | */ 5 | #include 6 | #include 7 | 8 | #define BACKLIGHT_PIN 13 9 | 10 | LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // set the LCD address to 0x38 11 | 12 | void setup() 13 | { 14 | pinMode ( BACKLIGHT_PIN, OUTPUT ); 15 | lcd.begin (16,2); 16 | digitalWrite ( BACKLIGHT_PIN, HIGH ); 17 | 18 | Serial.begin(9600); 19 | } 20 | 21 | void loop() 22 | { 23 | // when characters arrive over the serial port... 24 | if (Serial.available()) 25 | { 26 | // wait a bit for the entire message to arrive 27 | delay(100); 28 | // clear the screen 29 | lcd.clear(); 30 | // read all the available characters 31 | while (Serial.available() > 0) 32 | { 33 | // display each character to the LCD 34 | lcd.write(Serial.read()); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /LiquidCrystal/keywords.txt: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Syntax Coloring Map For LiquidCrystal_I2C 3 | ########################################### 4 | 5 | ########################################### 6 | # Datatypes (KEYWORD1) 7 | ########################################### 8 | 9 | LiquidCrystal_SR KEYWORD1 10 | LiquidCrystal_I2C KEYWORD1 11 | LiquidCrystal_SR3W KEYWORD1 12 | LiquidCrystal KEYWORD1 13 | LCD KEYWORD1 14 | 15 | ########################################### 16 | # Methods and Functions (KEYWORD2) 17 | ########################################### 18 | begin KEYWORD2 19 | clear KEYWORD2 20 | home KEYWORD2 21 | noDisplay KEYWORD2 22 | display KEYWORD2 23 | noBlink KEYWORD2 24 | blink KEYWORD2 25 | noCursor KEYWORD2 26 | cursor KEYWORD2 27 | scrollDisplayLeft KEYWORD2 28 | scrollDisplayRight KEYWORD2 29 | leftToRight KEYWORD2 30 | rightToLeft KEYWORD2 31 | moveCursorLeft KEYWORD2 32 | moveCursorRight KEYWORD2 33 | autoscroll KEYWORD2 34 | noAutoscroll KEYWORD2 35 | createChar KEYWORD2 36 | setCursor KEYWORD2 37 | print KEYWORD2 38 | write KEYWORD2 39 | println KEYWORD2 40 | backlight KEYWORD2 41 | noBacklight KEYWORD2 42 | on KEYWORD2 43 | off KEYWORD2 44 | setBacklightPin KEYWORD2 45 | setBacklight KEYWORD2 46 | ########################################### 47 | # Constants (LITERAL1) 48 | ########################################### 49 | POSITIVE LITERAL1 50 | NEGATIVE LITERAL1 51 | BACKLIGHT_ON LITERAL1 52 | BACKLIGHT_OFF LITERAL1 -------------------------------------------------------------------------------- /Pong/Pong.ino: -------------------------------------------------------------------------------- 1 | /* 2 | TFT Pong 3 | This example is for any Arduino with a ST7735 compatible TFT screen. 4 | It reads the value of analog inputs to move a rectangular platform 5 | on the x and y axes. The platform can intersect with a ball 6 | causing it to bounce. This code is adapted from Esplora TFT Pong. 7 | 8 | This example code is in the public domain. 9 | 10 | Created by Tom Igoe December 2012 11 | Modified 15 April 2013 by Scott Fitzgerald 12 | http://arduino.cc/en/Tutorial/EsploraTFTPong 13 | 14 | Updated for ST7735 compatible TFT's by Jens Chr Brynildsen, October 2013 15 | https://github.com/jenschr/Arduino-libraries 16 | 17 | Requires Adafruit's ST7735 library + GFX library 18 | https://github.com/adafruit/Adafruit-ST7735-Library 19 | https://github.com/adafruit/Adafruit-GFX-Library 20 | */ 21 | 22 | #include // Core graphics library 23 | #include // Hardware-specific library 24 | #include 25 | 26 | //#define sclk 13 27 | //#define mosi 11 28 | #define cs 10 29 | #define dc 9 30 | #define rst 8 // you can also connect this to the Arduino reset 31 | 32 | Adafruit_ST7735 tft = Adafruit_ST7735(cs, dc, rst); 33 | 34 | int xAxisPin = A0; 35 | int yAxisPin = A1; 36 | const int listSize = 10; 37 | int avgArray [listSize] = {0,0,0,0,0,0,0,0,0,0}; // smoothing of x value 38 | 39 | // variables for the position of the ball and paddle 40 | int paddleX = 0; 41 | int paddleY = 0; 42 | int oldPaddleX, oldPaddleY; 43 | int ballDirectionX = 1; 44 | int ballDirectionY = 1; 45 | 46 | int ballX, ballY, oldBallX, oldBallY; 47 | 48 | long lastFrameTime; 49 | long frameTimeAsMilliseconds; 50 | long count; 51 | 52 | void setup() { 53 | 54 | Serial.begin(9600); 55 | 56 | // initialize the display 57 | tft.initR(INITR_BLACKTAB); 58 | // set the background the black 59 | tft.fillScreen(ST7735_BLACK); 60 | } 61 | 62 | void loop() { 63 | // save the width and height of the screen 64 | int myWidth = tft.width(); 65 | int myHeight = tft.height(); 66 | 67 | Serial.println( analogRead( xAxisPin ) ); 68 | // map the paddle's location to the joystick's position 69 | paddleX = map( analogRead( xAxisPin ), 0, 1024, 0, myWidth) - 20/2; 70 | paddleY = map( analogRead( yAxisPin ), 1024, 0, 0, myHeight) - 5/2; 71 | 72 | // erase the previous position of the paddle if different from present 73 | if (oldPaddleX != paddleX || oldPaddleY != paddleY) { 74 | tft.fillRect(oldPaddleX, oldPaddleY, 20, 5, 0x000000); 75 | } 76 | 77 | // draw the paddle on screen, save the current position 78 | // as the previous. 79 | tft.fillRect(paddleX, paddleY, 20, 5, 0xffffff); 80 | oldPaddleX = paddleX; 81 | oldPaddleY = paddleY; 82 | 83 | moveBall(); 84 | 85 | delayMicroseconds( count % 16383 ); 86 | count++; 87 | } 88 | 89 | 90 | // this function determines the ball's position on screen 91 | void moveBall() { 92 | // if the ball goes offscreen, reverse the direction: 93 | if (ballX > tft.width() || ballX < 0) { 94 | ballDirectionX = -ballDirectionX; 95 | } 96 | 97 | if (ballY > tft.height() || ballY < 0) { 98 | ballDirectionY = -ballDirectionY; 99 | } 100 | 101 | // check if the ball and the paddle occupy the same space on screen 102 | if (inPaddle(ballX, ballY, paddleX, paddleY, 20, 5)) { 103 | ballDirectionY = -ballDirectionY; 104 | } 105 | 106 | // update the ball's position 107 | ballX += ballDirectionX; 108 | ballY += ballDirectionY; 109 | 110 | // erase the ball's previous position 111 | if (oldBallX != ballX || oldBallY != ballY) { 112 | tft.fillRect(oldBallX, oldBallY, 5, 5, 0x000000); 113 | } 114 | 115 | // draw the ball's current position 116 | tft.fillRect(ballX, ballY, 5, 5, 0xffff00); 117 | 118 | oldBallX = ballX; 119 | oldBallY = ballY; 120 | 121 | } 122 | 123 | // this function checks the position of the ball 124 | // to see if it intersects with the paddle 125 | boolean inPaddle(int x, int y, int rectX, int rectY, int rectWidth, int rectHeight) { 126 | boolean result = false; 127 | 128 | if ((x >= rectX && x <= (rectX + rectWidth)) && 129 | (y >= rectY && y <= (rectY + rectHeight))) { 130 | result = true; 131 | } 132 | 133 | return result; 134 | } 135 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | Various libraries that I either have updated (from others) or created myself. 2 | 3 | Download and copy the desired lib to your Arduino libraries folder. The default locations for these are: 4 | On your Mac:: In (home directory)/Documents/Arduino/libraries 5 | On your PC:: My Documents -> Arduino -> libraries 6 | On your Linux box:: (home directory)/sketchbook/libraries 7 | 8 | You may need to create the "libraries" subfolder if you haven't done so already. 9 | 10 | See each lib for it's License. 11 | --------------------------------------------------------------------------------