Author Topic: using Adafruit LED Backpack Library (for Arduino)  (Read 2543 times)

0 Members and 1 Guest are viewing this topic.


using Adafruit LED Backpack Library (for Arduino)
« on: April 08, 2013, 07:46:07 PM »

I am following this tutorial for connecting their LED matrices and controllers:


But their code comes for Arduino:


I imagine it is possible to make it work in Wiring. After modifying the call to Arduino.h to Wiring.h and running an example they provide (roboface) I get this error:

/Users/xxx/Documents/Wiring/libraries/Adafruit_LEDBackpack/Adafruit_LEDBackpack.cpp: In member function 'void Adafruit_LEDBackpack::writeDisplay()':
/Users/xxx/Documents/Wiring/libraries/Adafruit_LEDBackpack/Adafruit_LEDBackpack.cpp:80: error: call of overloaded 'write(unsigned int)' is ambiguous
/Applications/Wiring.app/Contents/Resources/Java/cores/AVR8Bit/libraries/Wire/Wire.h:54: note: candidates are: virtual void TwoWire::write(uint8_t)
/Applications/Wiring.app/Contents/Resources/Java/cores/AVR8Bit/libraries/Wire/Wire.h:55: note:                 void TwoWire::write(int)
/Applications/Wiring.app/Contents/Resources/Java/cores/AVR8Bit/libraries/Wire/Wire.h:56: note:                 virtual void TwoWire::write(const char*) <near match>
/Users/xxx/Documents/Wiring/libraries/Adafruit_LEDBackpack/Adafruit_LEDBackpack.cpp:81: error: call of overloaded 'write(uint16_t)' is ambiguous
/Applications/Wiring.app/Contents/Resources/Java/cores/AVR8Bit/libraries/Wire/Wire.h:54: note: candidates are: virtual void TwoWire::write(uint8_t)
/Applications/Wiring.app/Contents/Resources/Java/cores/AVR8Bit/libraries/Wire/Wire.h:55: note:                 void TwoWire::write(int)
/Applications/Wiring.app/Contents/Resources/Java/cores/AVR8Bit/libraries/Wire/Wire.h:56: note:                 virtual void TwoWire::write(const char*) <near match>

Any idea if this is easily fixable? It would be cool to be able to use that LED display and backpack in Wiring with their library.



Re: using Adafruit LED Backpack Library (for Arduino)
« Reply #1 on: April 08, 2013, 09:15:55 PM »
in /Users/xxx/Documents/Wiring/libraries/Adafruit_LEDBackpack/Adafruit_LEDBackpack.cpp:80: error: call of overloaded 'write(unsigned int)' change it to


and in /Users/xxx/Documents/Wiring/libraries/Adafruit_LEDBackpack/Adafruit_LEDBackpack.cpp:81: error: call of overloaded 'write(uint16_t)'

change it to write(int) as well.

These changes should work.


Re: using Adafruit LED Backpack Library (for Arduino)
« Reply #2 on: April 08, 2013, 09:59:17 PM »
Thanks for the reply. The answer itself didn't work but pointed me towards where the problem was.

What I did was cast all calls to Wire.write(whatever) in the Adafruit library as Wire.write((uint8_t)whatever). Sometimes "whatever" was a more complex statement so I surrounded the whole thing with parenthesis.

The result:





Re: using Adafruit LED Backpack Library (for Arduino)
« Reply #3 on: April 10, 2013, 12:09:30 PM »
looks great : )


Download video and MP3 youtube
« Reply #4 on: October 25, 2017, 08:47:21 PM »
<a href="https://descargar.one/watch?v=4LfJnj66HVQ">Descargar VÍDEO o MP3 Lil Pump - "Gucci Gang" (Official Music Video)</a><br>Lil Pump Album Out Now: https://ad.gt/lilpumpLil Pump Tour Tickets: https://lilpumpjetskii.comFollow</br>
<a href="https://descargar.one/watch?v=Xpw-jHmCjsg">Descargar VÍDEO o MP3 Milagro  Niño se salva de un rayo en plena tormenta mientras jugaba  Posadas Misiones</a><br>Un nene salió a jugar al patio en medio de una tormenta eléctrica y cayó un rayoOcurrió en Posadas, </br>
<a href="https://descargar.one/watch?v=DhcDRIiEKpY">Descargar VÍDEO o MP3 RJ Word  - Hold Tight (Audio Only)</a><br>RJ WORD - HOLD TIGHT OUT NOWSTREAM HOLD TIGHT  - SPOTIFY -  https://goo.gl/Da4hExAPPLE MUSIC - https</br>
<a href="https://descargar.one/watch?v=po-V_ZOdevg">Descargar VÍDEO o MP3 Otra vez 'Don Carter' protagonista de 'Sin Censura'</a><br>'Don Carter' nuevamente nos deleitó con los mejor de sus chistes en la edición especial del segmento</br>
<a href="https://descargar.one/watch?v=9YKrsNNI56Q">Descargar VÍDEO o MP3 Actor Eduardo Yáñez le pegó una cachetada a reportero Paco Fuentes de Univisión</a><br>Noticias:http://www.univision.com/entretenimiento/lo-que-no-se-vio...https://mundohispanico.com/entr</br>
<a href="https://descargar.one/watch?v=Lf2bpQ_yFgo">Descargar VÍDEO o MP3 Audax Italiano vs Colo Colo 0-3  Resumen y Goles  21/10/2017</a><br></br>
<a href="https://descargar.one/watch?v=tKkNwL2i8QE">Descargar VÍDEO o MP3 ITS ALL IN THERE REMIX</a><br>ELECTRONICA-CLUB SONG</br>
<a href="https://descargar.one/watch?v=GhrpH0-fiIc">Descargar VÍDEO o MP3 Velna  Gippy Grewal  Official Video  Humble Music  Jay K</a><br>Song :- VelnaSinger :- Gippy GrewalLyrics :- Happy RaikotiMusic :- Jay K (Jassi Katyal)Model Name :-</br>
<a href="https://descargar.one/watch?v=MoL_GLvlF3w">Descargar VÍDEO o MP3 LA VENDIÓ EL EDUARDO</a><br>Hay que puro hacerla Doblait@s, después es tarde, Avispate!!! Mira:  http://bit.ly/ExpPSU :OSUSCRÍBE</br>
<a href="https://descargar.one/watch?v=r6zIGXun57U">Descargar VÍDEO o MP3 Legends Never Die (ft. Against The Current)  Worlds 2017 - League of Legends</a><br>The pursuit of mastery is an endless journey, but those who persevere etch their names in history. F</br>
<a href="https://descargar.one/watch?v=INa-oOAexno">Descargar VÍDEO o MP3 Jan van Hooff visits chimpanzee "Mama", 59 yrs old and very sick. Emotional meeting</a><br>Mama, 59 years old and the oldest chimpanzee and the matriarch of the famous chimpanzee colony of th</br>
<a href="https://descargar.one/watch?v=X48P6MzEdgY">Descargar VÍDEO o MP3 Ildo - Warna Cinta (Official Music Video)</a><br>Ildo - Warna Cinta (Official Music Video) © 2017 VMC Music Entertainment. All Rights Reserved.Fanpag</br>
<a href="https://descargar.one/watch?v=B9zTaNZ_n5s">Descargar VÍDEO o MP3 Maroon 5 - Whiskey ft. A$AP Rocky</a><br>Get “Whiskey" ft. A$AP Rocky off of the upcoming album "Red Pill Blues" now.http://smarturl.it/RedPi</br>
<a href="https://descargar.one/watch?v=F1OGDBKMsyY">Descargar VÍDEO o MP3 NexXthursday - "Sway" ft. Quavo and Lil Yachty (Official Music Video)</a><br>Get this song here:  https://wbr.lnk.to/Sway</br>
<a href="https://descargar.one/watch?v=3e_upAlE1EE">Descargar VÍDEO o MP3 Panchlait  Movie Teaser  Amitosh Nagpal, Anuradha Mukherjee, Rajesh Sharma & Amitosh Nagpal,</a><br>Funtime Entertainment presents the teaser of 'Panchlait' starring Amitosh Nagpal, Anuradha Mukherjee</br>
<a href="https://descargar.one/watch?v=kAdisqDpdhg">Descargar VÍDEO o MP3 Mickey Mouse vs Bugs Bunny. Épicas Batallas de Rap del Frikismo T2  Keyblade</a><br>Escucha esta canción y otras muchas más en Spotify: http://bit.ly/KeybladeSpotifyCompra esta canción</br>
<a href="https://descargarvideosdeyoutube.top/watch?v=o2WFulHEreY">Descargar VÍDEO o MP3 Risas denise rosenthal y jose miguel viñuela chascarro</a><br>La Divina Comida 3 todos los derechos chilevision</br>
<a href="https://descargarvideosdeyoutube.top/watch?v=4kGpLNVjKVc">Descargar VÍDEO o MP3 Vesta Lugg - Contigo (Video Oficial)</a><br>Contigo performing by Vesta Lugg © Distribuye JCM Discográfica Ltd.Dirección: Oscar AndreéLocación: </br>
<a href="https://descargarvideosdeyoutube.top/watch?v=Ne-9-7hpbRw">Descargar VÍDEO o MP3 Ozuna -  Egoísta feat Zion y Lennox ( Video Oficial )</a><br>Ozuna -  Egoísta feat Zion y LennoxDESCARGA "Odisea" Aqui: http://apple.co/2vX00sTDescarga Odisea Th</br>
<a href="https://descargarvideosdeyoutube.top/watch?v=8LICxZtoN7g">Descargar VÍDEO o MP3 LA DIVINA COMIDA TEMPORADA 3 E01 ANFITRIÓN SERGIO FREIRE (PARTE 2)</a><br></br>