Open jc78 opened 7 years ago
Beuller? Beuller?
Anyone here have any ideas or suggestions?
Are there any nanpy devs in here that can help out? I've been trying in vein to make this work but with no success.
@astagi @ponty
You use different identifier in Python and C++ code: C++: Adafruit_DotStar Python: DotStar
You can see it in the log.
Hi,
I was wondering if @jc78 has their issue resolved. I'm trying to extend nanpy to accomodate Marten Lamer's NMEA library to nanpy. I'm running into a similar issue where I experience a SerialManager timeout.
I'm trying to extend nanpy by supporting Adafruit's DotStar LED strips and I'm running into a serial timeout when I'm trying to create an instance of the DotStar object I added.
I followed the instructions found here, and was able to get my sketch to compile and upload to my Uno board without any issues. I have run the blink.py test afterwards to ensure the nanpy firmware is working as expected and it is. I also tried running Adafruit's strandtest.ino to ensure that all of the hardware is functioning as expected, and it is.
My problem happens when I try to create a DotStar object in my python code. I'm assuming that the Adafruit_DotStar class I made is failing in some way. I'm not proficient in C++ so the best I could do was follow the documents and hope for the best. :-) I ensured that the actual Adafruit_Dotstar library is in my Arduino Sketchbook\Libraries folder so it can be included properly.
Your Python code
Your log messages
Your cfg.h
Output of examples/firmware_check.py
Extended Python module (dotstar.py)
(saved at: ..\python2.7\dist-packages\nanpy\dotstar.py)
C++ Files (DotStarClass.cpp & DotStarClass.h)
(saved at: ..\sketchbook\libraries\nanpyfirmware\nanpy)
.cpp
.h
nanpy.ino
Your hardware
Uno
Adafruit DotStar LED Strip (only testing with 3 pixels (LEDs)
Verified the DotStar Strip is properly wired.