Post topics, source code that relate to the Arduino Platform

User avatar
By Franck
#93929 Morning,
I am not an expert, but I can use correctly Arduino IDE.
I have bought ESP01 without firmware.
I need to load software to drive Oled 128x32, and displayed IP adresse, for reflash with ESP01_OTA (across platform IO)
Impossible to find INO source.
Thank you for your help.
Regards
User avatar
By btidey
#93948 You don't say what the display is but I guess it is something like a SSD1306.

These come with either a I2C or SPI interface.

The ESP-01 is not a great module as it has very limited IO. It would be better to use either a ESP-12F module or a Wemos D1 mini Pro. The latter makes development easy as it can just be connected to your development system by USB. If you must use the ESP01 then that can work with a I2C display as that only needs 2 GPIO pins.

You then need to use a library to drive the display e.g. Adafruit SSD1306. Once you have installed that in your development system then there are example .ino files included which will give you a starting point.
User avatar
By Franck
#93956 Thank you I am in progress. I have succeeded to load a wifi server. Now my ESP01 is connected to my box at 192.168.1.100.
Now I would like upload my application to drive my OLED screen witch SDD1306. The code is ready for this chip.
I use for this, Visual studio and plateformIO, and I compile with ESP_1m-ota to compile and upload.
Compilation is OK, but I have error message.

Code: Select all.Uploading .pio/build/esp01_1m_ota/firmware.bin
22:55:06 [DEBUG]: Options: {'esp_ip': '192.168.1.100', 'host_ip': '0.0.0.0', 'esp_port': 8080, 'host_port': 16170, 'auth': 'franck', 'image': '.pio/build/esp01_1m_ota/firmware.bin', 'spiffs': False, 'debug': True, 'progress': True}
22:55:06 [INFO]: Starting on 0.0.0.0:16170
22:55:06 [INFO]: Upload size: 425824
22:55:06 [INFO]: Sending invitation to: 192.168.1.100
22:55:16 [ERROR]: No Answer
*** [upload] Error 1
========================= [FAILED] Took 19.37 seconds =========================

Environment    Status    Duration
-------------  --------  ------------
esp01_1m_ota   FAILED    00:00:19.375
==================== 1 failed, 0 succeeded in 00:00:19.375 ====================
The terminal process "platformio 'run', '--target', 'upload', '--environment', 'esp01_1m_ota'" terminated with exit code: 1.

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


I am not sure param in plattformio.ini:

Code: Select all.[env:esp01_1m_ota]
upload_port = 192.168.1.100
upload_speed = 921600
upload_protocol = espota
upload_flags =
  --port=8080
  --auth=franck


Do you have an ideas ??? thank you very much