Giter Club home page Giter Club logo

Comments (10)

KodeMunkie avatar KodeMunkie commented on July 18, 2024

Hi, it's just a regular PlatformIO project - just open the folder itself in PlatformIO.
With your Atom connected, select the alien icon (PlatformIO icon) left side, select "Upload" (this should build automatically first, if it doesn't just click the "Build" option). Don't forget to set the constants in the main.cpp mentioned in the readme.
Hope this helps!

from atomictext.

fgolman avatar fgolman commented on July 18, 2024

from atomictext.

fgolman avatar fgolman commented on July 18, 2024

Well, now that I figured out PlatformIO and how launch it into the app, the build/upload failed. Here's the terminal session log. Perhaps there's a missing or incorrectly named library? Also, I've loaded this in my Arduino library folder ... maybe it should be elsewhere on my drive?

Thanks for your insight!

Executing task: C:\Users\1123781.platformio\penv\Scripts\pio.exe run --environment m5stack-core-esp32 <

Processing m5stack-core-esp32 (platform: espressif32; board: m5stick-c; framework: arduino)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/m5stick-c.html
PLATFORM: Espressif 32 (2.0.0) > M5Stick-C
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:

  • framework-arduinoespressif32 3.10004.201016 (1.0.4)
  • tool-esptoolpy 1.20600.0 (2.6.0)
  • toolchain-xtensa32 2.50200.80 (5.2.0)
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 28 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- 0.0.1
    | |-- 3.3.3
    | | |-- 1.0
    | |-- 1.0.1
    |-- 3.3.3
    | |-- 1.0
    |-- 1.0
    | |-- 1.0
    |-- 1.0
    Building in release mode
    Compiling .pio\build\m5stack-core-esp32\src\messageHandler.cpp.o
    Archiving .pio\build\m5stack-core-esp32\libb94\libM5Atom.a
    Compiling .pio\build\m5stack-core-esp32\lib500\WiFi\WiFiAP.cpp.o
    src\messageHandler.cpp:19:28: fatal error: ESP32WebServer.h: No such file or directory


compilation terminated.
Compiling .pio\build\m5stack-core-esp32\lib500\WiFi\WiFiGeneric.cpp.o
Compiling .pio\build\m5stack-core-esp32\lib500\WiFi\WiFiMulti.cpp.o
Compiling .pio\build\m5stack-core-esp32\lib500\WiFi\WiFiSTA.cpp.o
Compiling .pio\build\m5stack-core-esp32\lib500\WiFi\WiFiScan.cpp.o
*** [.pio\build\m5stack-core-esp32\src\messageHandler.cpp.o] Error 1
===================================== [FAILED] Took 4.85 seconds =====================================
The terminal process "C:\Users\1123781.platformio\penv\Scripts\pio.exe 'run', '--environment', 'm5stack-core-esp32'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

from atomictext.

fgolman avatar fgolman commented on July 18, 2024

Getting closer, figured out library dependency except it seems esp32webserver. Is there a specifc version or source you're using?

Here's the run now:

Processing m5stack-core-esp32 (platform: espressif32; board: m5stick-c; framework: arduino)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/m5stick-c.html
PLATFORM: Espressif 32 (2.0.0) > M5Stick-C
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:

  • framework-arduinoespressif32 3.10004.201016 (1.0.4)
  • tool-esptoolpy 1.20600.0 (2.6.0)
  • toolchain-xtensa32 2.50200.80 (5.2.0)
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 28 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- 0.0.1
    | |-- 3.3.3
    | | |-- 1.0
    | |-- 1.0.1
    |-- 3.3.3
    | |-- 1.0
    |-- 1.0
    | |-- 1.0
    |-- 1.0
    Building in release mode
    Compiling .pio\build\m5stack-core-esp32\src\messageHandler.cpp.o
    src\messageHandler.cpp:19:28: fatal error: ESP32WebServer.h: No such file or directory


compilation terminated.
*** [.pio\build\m5stack-core-esp32\src\messageHandler.cpp.o] Error 1
===================================== [FAILED] Took 2.99 seconds =====================================
The terminal process "C:\Users\1123781.platformio\penv\Scripts\pio.exe 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

from atomictext.

KodeMunkie avatar KodeMunkie commented on July 18, 2024

I'll have a check tonight but there is a dependency on that library. You need to import the the dependency in PlatformIO, not via the Arduino folder (since it doesn't look in your Arduino IDE library). You can do this via the PlatofrmIO IDE, there is an automatic option to fix it (or use the library/header browser) although I may also be able to do the same by adding the dependency in the platformio.ini and then you can update (no idea if this will work, but should do).

from atomictext.

KodeMunkie avatar KodeMunkie commented on July 18, 2024

@fgolman can you try the FixDeps code branch I've put in the pull request for this issue and leave a comment here or on the pull request as to whether it works for you?
I deleted my (already downloaded) lib dependencies and then my builds failed like yours, I added the new lines (in that request) and it then built fine.

from atomictext.

fgolman avatar fgolman commented on July 18, 2024

The FixDeps code branch seemed to compile just fine and works. BUT, no default message appears and I don't see the device on my network.

In addition, it would be wonderful to get the IP address the device grabs using Mark Garetz's code: https://github.com/MarkGaretz/ATOM-Matrix-Tally-Light.

from atomictext.

KodeMunkie avatar KodeMunkie commented on July 18, 2024

from atomictext.

fgolman avatar fgolman commented on July 18, 2024

Based on your notes, I tried another WiFi access point and it worked! Including the local mDNS!

Now, in addition to the IP address (so we could have multiple devices on same network) how about single color display rather than cycling through rainbow.

Thank you for your assistance and explanations! Looking good now!

from atomictext.

KodeMunkie avatar KodeMunkie commented on July 18, 2024

Please add your feature requests as new issues - feel free to submit code changes pull requests or I'll have a look at the feature issues when I get time (config options, for which single colour would fall under, is on my TODO list for this "quick and dirty" project)

from atomictext.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.