QUestions about the modified Liquid Crystal library for backpack

Breakout boards, sensors, Drawdio, Game of Life, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

QUestions about the modified Liquid Crystal library for backpack

Postby egdinger » Mon Mar 07, 2011 9:58 pm

I was trying to adapt the provided library for the backpack to use hardware SPI instead of shiftout, and noticed the interesting two lines beginning at line 94

Code: Select all
  // we can't begin() yet :(
  begin(16,1);


In the constructor for SPI liquid crystal object. Does anyone know why it's there, when the comments say we shouldn't do this, and if removing breaks anything? Having the begin() there causes problems with the hardware SPI because it tries to use the interface before it's initialized and hangs when creating a global LiquidCrystal object. Taking it didn't seem to affect anything, but I didn't do any through testing.
egdinger
 
Posts: 1
Joined: Mon Feb 14, 2011 7:35 pm

Re: QUestions about the modified Liquid Crystal library for backpack

Postby adafruit » Tue Mar 08, 2011 11:55 am

dont remember
but you should only have to do a search and replace for the shiftout function
User avatar
adafruit
 
Posts: 10545
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc


Return to Other Adafruit products

Who is online

Users browsing this forum: No registered users and 4 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [113]

Raspberry Pi[81]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]