Closed fanlessfan closed 3 years ago
Hi, maybe you already have exported the environments variables? like in the README file is mentioned? and please give me the error without verbose mode enabled.
Hello @hpsaturn
I am new to platformio. first time actrually. I installed the vscode and install the platformio extension. Then install the Espressif32 platform. open you code as a project and compile it. what else do I need to do to compile the code? the error above the output when I run pio command or within the vsCode.
It might not the problem of your code, but just want to know what to do before I can compile it.
thx
well, vscode is a alternative for build it and also for developing too, but you only need PlatformIO, and it has a command line tool, platformio core, with it you have pio
command in your system, and with it you only need to execute the all steps on README file. The pio command for example auto install the Espressif platform, you DON'T need install for example it to hand.
I suggest please uninstall all extensions on vscode and vscode too, then follow the next guide: https://docs.platformio.org/en/latest/core/installation.html#local-download-mac-linux-windows
and also the next: https://docs.platformio.org/en/latest/core/installation.html#windows
with it, you should be have the CLI command pio
in your system, for validate it, please run:
pio --version
and after that, you should be compile any project, and my project too.
Hi @hpsaturn Thank you for the help. I re-installed windows, installed python and platformio cli. Unfortunately I still get the same error as above. But I managed to compile it in Arduino-ide and it works perfectly. I'd like to modify it to add sensor data to the screen. however, I got problem with letter overwritten. Basically the content is not cleared before the next write. Could you help me on how to do it like the clock number? my code is simple for now like below. I tried to pain the space with 0xff before writing, but now working.
void drawBattery() { char str[50]; sprintf(str, "Bat: %.2f V",batVol); TimePageSprite.drawString(10,180,str,&AsciiFont8x16); }
Ok, you should be try to analyze the code, because is similar. For now, I'm going to close the issue.
Hello, I am new to platform io. I got error below when I try compile it. Could you any one point me the right direction?
thx
D:\m5coreink-ntp-clock>c:pio run --target upload Processing m5stack-core-esp32 (platform: espressif32; board: m5stack-core-esp32; framework: arduino)
Verbose mode can be enabled via
-v, --verbose
option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/m5stack-core-esp32.html PLATFORM: Espressif 32 (3.2.0) > M5Stack Core ESP32 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: