by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 21 13:00
    shariramani updated the wiki
  • Jun 17 22:11
    Makuna closed #358
  • Jun 17 22:11
    Makuna opened #358
  • Jun 16 17:18
    Makuna labeled #357
  • Jun 16 04:20
    GerwinJanssen opened #357
  • Jun 09 23:20
    Makuna closed #356
  • Jun 09 23:20
    Makuna opened #356
  • Jun 09 07:11
    Makuna closed #355
  • Jun 09 07:11
    Makuna opened #355
  • May 31 08:10
    Makuna closed #354
  • May 31 08:10
    Makuna opened #354
  • May 25 20:17
    Makuna closed #353
  • May 25 20:17
    Makuna opened #353
  • May 20 07:53
    Makuna reopened #352
  • May 20 07:53
    Makuna labeled #352
  • May 20 07:53
    Makuna assigned #352
  • May 20 07:32
    Makuna closed #352
  • May 20 06:32
    dsimonet opened #352
  • May 20 01:47
    marcmerlin closed #351
  • May 18 03:12
    marcmerlin opened #351
Mike Dunston
@atanisoft
ok, you are not using cmake in that case
you should likely convert to using cmake since Makefile is deprecated IIRC
As for how to add a dependency in the Makefile, I'm not certain
Mike Dunston
@atanisoft
well, that has CMakeFiles.txt in it
the Makefile is not needed now
or component.mk
that template doesn't appear to have been updated in a long time either
I'd suggest use of the idf examples to start with
djangosoe
@djangosoe
All the exmples in the esp-idf/examples folder use MakeFile
Mike Dunston
@atanisoft
they also all have CMakeFiles.txt
simply delete Makefile and component.mk
djangosoe
@djangosoe
done that
Mike Dunston
@atanisoft
then it should just work
you may need to delete the top level build directory and have idf.py rebuild it
also you couldn
djangosoe
@djangosoe
Nice I think I got it
Mike Dunston
@atanisoft
great
djangosoe
@djangosoe
Now I got a error about missing Arduino.h NeoPixelBus/src/internal/Rgbcolor.h Fatal error Arduino.h: No such file or directory
Thanks for the help so far, lets see if I can get my led to light up tonight ^^
Mike Dunston
@atanisoft
you will likely need to add arduino-esp32 as a component, though NeoPixelBus has no hard dependency on Arduino.h....
Michael Miller
@Makuna
That stupid include is for other platforms under the Arduino IDE, the standard for Arduino was it was automatically included in the build, but some platforms just never got it right so it had to be included.
djangosoe
@djangosoe
I putting // in front of them
lets see if it will work
image.png
image.png
I think its to hard for me with almost no c++ knowledge..
Next error: src/internal/NeoBlend.h error: unknown type name 'class'
Mike Dunston
@atanisoft
are you including them in a C file ? If so, rename it to end in cpp and it should work
@Makuna what in Arduino.h do you really depend on? I couldn't find anything other than a few includes like #include <stdint.h>
djangosoe
@djangosoe
I did build a solution where my raspberry-pi (python) is talking to a arduino over i2c. The arduino is controlling the ws2812b led strip.
Now I needed more ram to control more leds, I got myself a ESP32.
I put my arduino code on the ESP32 and found out that the i2c slave mode is not workign on esp32, the leds work the raspberry pi communication stopped...
Then I jumped in the esp-idf
Mike Dunston
@atanisoft
i2c slave works fine in idf
I also dropped all arduino dependencies
djangosoe
@djangosoe
good to hear, that will be my next challange
Do you have experience with SPI?
Mike Dunston
@atanisoft
not really
djangosoe
@djangosoe
are you including them in a C file ? If so, rename it to end in cpp and it should work
I do not get it to work
I think I need to stop for today :(
Michael Miller
@Makuna
@atanisoft It used to be just min and max, and simple io setup (pin mode, etc).
Mike Dunston
@atanisoft
hmm, ok
djangosoe
@djangosoe
If someone have time to put a template package together with the NeoPixelBus package working on esp-idf that would be awesome!
In the meantime I will focus on my c++ skills :)
It does not feel right to post every error I got
Michael Miller
@Makuna
@djangosoe It does look like it is being used from a .c file. The .c file extension forces the compiler to use C language and not c++. Switch it to .cpp.
djangosoe
@djangosoe
I did change all my .c files to .cpp.
Except main.c if I change it to main.cpp I got a error cant find main.c
darkenergy86
@darkenergy86
Hi guys, do someone know, which gpio works on the esp-01s?
Michael Miller
@Makuna
darkenergy86
@darkenergy86
Problem solved, thank you.
i use a rgbw stripe. how can i use the "w" value with a hsb onject
x,0,100 will be converted to 255,255,255,0 but how can i use just 0,0,0,255 with only hsb values
Michael Miller
@Makuna
Hsb, Hsl, Rgb are ways to define a color; where considering white separately does not make sense. If you need to set the W channel you need to convert to RgbW and manually adjust the W channel.
Michael Miller
@Makuna
To convert is as easy as assignment from a method call...
HsbColor original;
// set/get original color
RgbwColor adjusted(0);// init to black
adjusted.W = original.CalculateBrightness(); // just set the brightness.
or even just

HsbColor original;
// set/get original color
RgbwColor adjusted(original.CalculateBrightness()); // will only set the W channel