|
Post by Powderjockey on Jul 13, 2018 7:30:39 GMT -8
With all of the compiling errors I was having, I went to Gitter/Espressif (https://gitter.im/espressif/arduino-esp32)and started to ask some questions. They had me perform a bunch of tasks, including deleting the /Documents/Arduino/hardware/espresif/ directories. Went thru some installations and nothing worked, same old errors. As a last ditch effort, they had me add the link below to the repos in Arduino Preferences. They advised me I did not have to go thru the installation instructions you had provided me as everything should be installed/available to the IDE. Low and behold, it did work.
https://dl.espressif.com/dl/package_esp32_dev_index.json
|
|
|
Post by SDL on Jul 13, 2018 19:18:40 GMT -8
PowderJockey,
You have solved it! I had heard they were going to release this eventually and they finally did! We still don't understand why the old instructions works on some machines and doesn't on others.
I'll try this and write it up as the instructions for all to use!
Thanks again!
BP
|
|
|
Post by SDL on Jul 13, 2018 19:47:45 GMT -8
Folks, Just tried the new ESP32 release and it worked like a champ. (Note: If you have installed the SDK before, go into your Arduino Directory -> hardware/ and delete espressif ) Instructions: 1) Open up the Arduino IDE 2) Open Up Preferences, hit the box to the right of "Additional Board Manager URLs" 3) Cut and paste the following into the box https://dl.espressif.com/dl/package_esp32_dev_index.json 4) Hit OK on the box and OK on the preferences box. 5) Close Arduino and Restart the Arduino IDE 6) Go to: Tools->Boards->Board Manager 7) search on ESP32 8) Click on Install 9) Close and Restart the Arduino IDE again 10) Go to tools->Boards and select "ESP32 Adafruit Feather" Now you can compile all the software. Some pictures are attached: Best regards, BP B  P   Attachments:
|
|
|
Post by ddparker on Jul 18, 2018 12:52:06 GMT -8
More compiling errors
pixelColor_t brightnessAbsolute(pixelColor_t pixelColor, int maximum) { pixelColor_t newPixel; int r, g, b, w; int myMaximum;
if ((r >= g) && (r >= b) && (r >= w)) { myMaximum = r; } else if ((g >= b) && (g >= w)) { myMaximum = g; } else if (b >= w) { myMaximum = b; } else myMaximum = w;
newPixel.r = regularizePixel((int((float)r * ((float) myMaximum / (float)maximum)))); newPixel.g = regularizePixel((int((float)g * ((float) myMaximum / (float)maximum)))); newPixel.b = regularizePixel((int((float)b * ((float) myMaximum / (float)maximum)))); newPixel.w = regularizePixel((int((float)w * ((float) myMaximum / (float)maximum))));
}
Error Msg
exit status 1 no return statement in function returning non-void [-Werror=return-type]
|
|
|
Post by Powderjockey on Jul 18, 2018 17:14:38 GMT -8
What are the line numbers? What file is this code from?
Do you have all of the files from the SDL_ESP32_BC24DEMO in the same directory?
I'm not a mad programmer, but I can find my way around code and try to give you a hand.
|
|