LED Strips and Digispark (no sp)

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

LED Strips and Digispark (no sp)

Postby jonwa » Thu Jan 31, 2013 1:47 am

I was looking forward to controlling my adafruit WS2081 led strips with the new digispark chip. They are so small, just about the same width as the led strip itself.
However, the adafruit WS2801 library a dependency on SP, which appears to be missing from the digispark.
There's comments out there in the blog world about removing references to SP and letting it rely on "bitbanging", whatever that means.

I can code in processing, but C? not so much. What's bitbanging and/or what might it take to end up with a version of the WS2801 that can work with digispark?

Thanks
jonwa
 
Posts: 23
Joined: Sun Oct 23, 2011 6:56 pm

Re: LED Strips and Digispark (no sp)

Postby pburgess » Thu Jan 31, 2013 3:10 am

"Bitbanging" refers to doing in software something that's normally handled by an on-chip peripheral function. SPI (Serial Peripheral Interface) is one such feature that's present on ATmega chips but not the ATtiny used on the Digispark.

The Adafruit_WS2801 library can operate in either mode (bitbang or hardware SPI)...but as written, still requires hardware support in order to compile, even if it's not used.

The shortest route to getting something working on the Digispark would be to make a fork of the library and strip out all the hardware SPI-specific functions and logic, so only the bitbang cases remain. Adapting the existing code to compile for either case is non-trivial (it might eventually happen, like when Gemma ships, but at this moment there's been no use case and it isn't really a priority).
User avatar
pburgess
 
Posts: 1327
Joined: Sun Oct 26, 2008 1:29 am

Re: LED Strips and Digispark (no sp)

Postby jonwa » Thu Jan 31, 2013 12:40 pm

Gemma?
jonwa
 
Posts: 23
Joined: Sun Oct 23, 2011 6:56 pm

Re: LED Strips and Digispark (no sp)

Postby pburgess » Thu Jan 31, 2013 1:53 pm

It's a small ATtiny-based wearable board from Adafruit (like Flora, but dinkier). Currently a work-in-progress with no release date set...which is why simply tearing out the SPI-specific logic in the library might be a quicker and easier approach.
User avatar
pburgess
 
Posts: 1327
Joined: Sun Oct 26, 2008 1:29 am

Re: LED Strips and Digispark (no sp)

Postby MauiMaker » Wed Mar 27, 2013 6:51 pm

We found a digispark compatible library on GitHub
https://github.com/nsthorat/LPD8806-bitbang-only
Just tested it and it worked well for 10-20 LED strips
More than that and the digispark gets hot.
Jerry Isdale
Maui Makers
http://mauiMakers.com
MauiMaker
 
Posts: 58
Joined: Tue Dec 14, 2010 11:54 pm
Location: Haiku, Maui Hawaii USA


Return to Glowy things (LCD, LED, TFT, EL) purchased at Adafruit

Who is online

Users browsing this forum: Google [Bot], mibignistinly and 3 guests

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


New Products [105]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
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[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


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