• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Uploading a non.py file to ESP32

Q&A Forum › Category: ESP32 › Uploading a non.py file to ESP32
0 Vote Up Vote Down
Damian Hartley asked 3 years ago

Hi Sara
 
I am trying to upload a file that is a raw file containing data to be used to generate and display a battery graphic it is a .pbm file. I have generated the file ok but cannot get it into the ESP32 I used
 
ampy –port COM3 –baud 115200 put C:\PythonV380\Scripts\battery.pbm
but i get
 
ERROR: Invalid value for “LOCAL” :  Path “battery.pbm” does not exist.
 
Any ideas since I found a battery graphic, used GIMP to save it as 1 bit per pixel to create the raw file called battery.pbm and wanted to follow the next step as per this instruction
https://www.twobitarcade.net/article/displaying-images-oled-displays/
 
so that I could next proceed with the loading images section of the document. This would then allow me to perhabs bytearray it rather can construct the icon pattern line by line
 
Any ideas ??
 
Thanks again Sara & Rui
 
Regards
 
Damian
 

Question Tags: Uploading a non.py file to ESP32 - How?
1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi Damian.
I think that error means that it can’t find the battery.pbm file in that path.
Are you sure you’ve written the right path?
This tutorial explains how to upload files to the ESP32, it might help: https://techtutorialsx.com/2017/06/04/esp32-esp8266-micropython-uploading-files-to-the-file-system/
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.