pixelmatix / SmartMatrix

SmartMatrix Library for Teensy 3, Teensy 4, and ESP32
http://docs.pixelmatix.com/SmartMatrix
611 stars 161 forks source link

Adapt smartmatrix to Espruino #110

Closed B1tb0t closed 4 years ago

B1tb0t commented 4 years ago

Hi, I realy love the smartmatrix library for my Esp32. My latest project is based on Espruino, but I want to use smartmatrix with it (there is no libaray for Hub75 led matrix yet). Is it possible to adapt this library to Espruino?

Jonas

embedded-creations commented 4 years ago

I’m not sure how that would work, and it’s not a trivial project. Is there an APA102 LED library for Esprino?

B1tb0t commented 4 years ago

I found no full libarary for APA102. There is some code to controll APA102 led strips with SPI. I am currently trying to include smartmatrix in the espruino firmware (https://www.espruino.com/Extending+Espruino+1). But it needs the arduino.h file to work, but I found no way to include it yet.

embedded-creations commented 4 years ago

Maybe instead of including Arduino.h, remove the #include and see what definitions are missing and add them directly instead. It might just be a few definitions I use from Arduino, I’m not sure

B1tb0t commented 4 years ago

Ok I removed the Arduino.h including and build again. Now there are a lot of small errors:

output.txt

s it a version problem ?

embedded-creations commented 4 years ago

Arduino.h probably includes a other required header files, like inttypes.h (not sure if that's the actual name). I can't tell you exactly how to fix this problem, but I'd start by finding Arduino.h in an Arduino install and adding it to your project, or including what's necessary from it.

B1tb0t commented 4 years ago

I dont know mutch about led matrixes, but is it possible to write a matrix driver for the espruino graphics library (https://www.espruino.com/Graphics) ?

embedded-creations commented 4 years ago

It might be possible, but not without a lot of work, which I'm not going to be doing myself. I'm going to close this issue.