Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 668
» Latest member: Barryhunter
» Forum threads: 406
» Forum posts: 1,949

Full Statistics

Online Users
There are currently 11 online users.
» 0 Member(s) | 10 Guest(s)
Bing

Latest Threads
tft.compileFont() functio...
Forum: MicroPython
Last Post: Sanjib
02-22-2021, 04:12 PM
» Replies: 0
» Views: 45
MQTT_CLIENT: read error o...
Forum: ESP32
Last Post: formica
02-18-2021, 04:19 PM
» Replies: 0
» Views: 77
I am looking for a soluti...
Forum: MicroPython
Last Post: alien1983
02-10-2021, 08:12 AM
» Replies: 1
» Views: 117
LilyGO TTGO T8 5V power?
Forum: Hardware
Last Post: EvilKitty666
02-04-2021, 04:22 PM
» Replies: 0
» Views: 46
UART change baud rate
Forum: Issues
Last Post: Simranto09
02-03-2021, 05:36 PM
» Replies: 3
» Views: 1,876
I2C init / deinit problem
Forum: Issues
Last Post: Simranto09
02-03-2021, 08:15 AM
» Replies: 5
» Views: 3,735
ESP-32 status/Bluetooth
Forum: General
Last Post: avanti
01-18-2021, 11:35 PM
» Replies: 0
» Views: 311
New Font creator online t...
Forum: Announcements and updates
Last Post: new2M5Stack
01-15-2021, 07:28 AM
» Replies: 8
» Views: 4,732
MaixDuino support
Forum: K210, Kendryte RISC-V Dual Core 64bit CPU
Last Post: len
01-05-2021, 01:10 AM
» Replies: 0
» Views: 353
Installation Issues
Forum: General
Last Post: ethandk
12-23-2020, 02:55 PM
» Replies: 0
» Views: 467

 
  tft.compileFont() function
Posted by: Sanjib - 02-22-2021, 04:12 PM - Forum: MicroPython - No Replies

<p>Hello,</p><p>I am a new use to TTGO board with a display and also to MicroPython. I was trying to use custom font and used the online tool mentioned in the forum:</p><p>https://loboris.eu/forum/showthread.php?tid=826<br></p><p><br></p><p>I have generated the .c file and used the tft.compileFont() function to generate the .fon file. As I have used "debug=True", I could see the error as:&nbsp;</p><p><br></p><p>Error opening source file '/_#!#_spiffs/&lt;file_name&gt;.c'</p><p><br></p><p>Is it because I have kept the .c file at the wrong location? Where should I keep it?</p><p><br></p><p><br></p><p><br></p><p><br></p>

Print this item

  MQTT_CLIENT: read error or end of stream
Posted by: formica - 02-18-2021, 04:19 PM - Forum: ESP32 - No Replies

<p>Hi guys, <br>using the mqtt module on pycom w01 I always obtain this error.<br>I'm trying to connect the module to mosquitto on Ubuntu.<br><br>MQTT_CLIENT: read error or end of stream<br><br>Any idea?<br><br></p>

Print this item

  I am looking for a solution for _thread in class object
Posted by: alien1983 - 02-08-2021, 08:25 PM - Forum: MicroPython - Replies (1)

<p>Hi,</p><p>This is an example of
<!--StartFragment-->threading<!--EndFragment-->

for a class...<br></p><p>[python]</p><p># A minimal threading example with an object<br>import threading<br>import time<br><br><br>class MyThread(threading.Thread):<br>&nbsp; &nbsp; def run(self):&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Default called function with mythread.start()<br>&nbsp; &nbsp; &nbsp; &nbsp; print("{} started!".format(self.getName()))&nbsp; &nbsp; &nbsp; &nbsp; # "Thread-x started!"<br>&nbsp; &nbsp; &nbsp; &nbsp; time.sleep(1)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Pretend to work for a second<br>&nbsp; &nbsp; &nbsp; &nbsp; print("{} finished!".format(self.getName()))&nbsp; &nbsp; &nbsp; # "Thread-x finished!"<br><br>def main():<br>&nbsp; &nbsp; for x in range(4):&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Four times...<br>&nbsp; &nbsp; &nbsp; &nbsp; mythread = MyThread(name = "Thread-{}".format(x))&nbsp; # ...Instantiate a thread and pass a unique ID to it<br>&nbsp; &nbsp; &nbsp; &nbsp; mythread.start()&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # ...Start the thread, run method will be invoked<br>&nbsp; &nbsp; &nbsp; &nbsp; time.sleep(.9)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # ...Wait 0.9 seconds before starting another<br><br>if __name__ == '__main__':<br>&nbsp; &nbsp; main()[/python]</p><p><br></p><p>Not work With Lobo Micropython,&nbsp;I am looking for a solution for _thread..</p><p>[python]
<!--StartFragment-->import _thread<br>import time<!--EndFragment-->&nbsp;</p><p>...[/python]</p><p><br></p><p>
<!--StartFragment-->class MyThread(_thread.Thread):&nbsp; ? :|<!--EndFragment-->

<br></p><p><br></p><p><br></p>

Print this item

  LilyGO TTGO T8 5V power?
Posted by: EvilKitty666 - 02-04-2021, 04:22 PM - Forum: Hardware - No Replies

<p>Hi guys,</p><p>i would like to ask you for help.</p><p>I need to power&nbsp;<b>L</b><b>ilygo TTGO T8 V1.7 ESP32 </b>with&nbsp;5V (step down convertor). Is it possible with 5V Pin?&nbsp;</p><p>We just used USB and 5V pin to power display so im not sure about 5V input or output...</p><p>Best version for us is to use step-down convertor 5V to power display and LilyGO at once.</p><p>&nbsp;I have backup setup with another step down convertor to simulate 4,2V battery and then 5V pin to power display again,but its actually shiping and looks stupid in my eyes...</p><p>thanks!</p><p><br></p><p>pinout:</p><p>https://cdn.tindiemedia.com/images/resize/UklVmED7sdKHsvyvZf7-feFSScU=/p/fit-in/1032x688/filters:fill(fff)/i/56359/products/2019-05-25T07%3A58%3A22.171Z-T81.7.jpg?1606306133<br></p><p><br></p><p>schematics:</p><p>https://github.com/LilyGO/TTGO-T8-ESP32/blob/master/t8_v1.7.1.pdf<br></p>

Print this item

  ESP-32 status/Bluetooth
Posted by: avanti - 01-18-2021, 11:35 PM - Forum: General - No Replies

<p style="margin: 0px; padding: 0px; font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 14px; color: rgb(51, 51, 51); caret-color: rgb(51, 51, 51); font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">I have been a user of &nbsp;the&nbsp;Lobo ESP-32 Micropython fork for quite some time and have implemented several significant projects in it with great success. I have worked around the few serious bugs and find that the advantages of this fork to&nbsp;greatly outweigh&nbsp;the disadvantages of working with a semi-dormant fork. I have been a happy user.</p><p style="margin: 0px; padding: 0px; font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 14px; color: rgb(51, 51, 51); caret-color: rgb(51, 51, 51); font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;"><br></p><p style="margin: 0px; padding: 0px; font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 14px; color: rgb(51, 51, 51); caret-color: rgb(51, 51, 51); font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">However, I now have an imminent need for Bluetooth support, and so am faced with a decision point. The current (2018) release contains a BT module, but the release notes say that it is experimental and should not be used. So, I have a decision to make. Should I:<br><br>1) Ignore the warning and lack of documentation and attempt to use the existing BT library?<br>2) Find another Micropython BT package and attempt to import it?<br>3) Abandon this port for another fork?<br><br>I hate the thought of #3, since I like the current one a lot and have a lot invested in it. It is my understanding that there is a newer version that is used for the K210 project. <span style="caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline !important; float: none;">Is there any way I can use this version in an ESP32-only project?<br></span><br>I realize that a new ESP release has been in the works for a while now, but I have run out of time.<br><br>Has anybody found a practical&nbsp;way to use BT with the current library?<br><br>Any information or advice would be appreciated.<br><br>Thanks for any help.<br><br></p><br><p></p>

Print this item

  MaixDuino support
Posted by: len - 01-05-2021, 01:10 AM - Forum: K210, Kendryte RISC-V Dual Core 64bit CPU - No Replies

<p>I noticed the prebuilts for the Maix boards&nbsp;seem to be with the smaller coprocessor not the ESP32. I have the MaixDuino and have ordered a Raspberry Pi hat version that clocks at 600MHz. Although Seeed seems to be backordered on the MaixDuino, it seems to be widely available on AliExpress it is even sale priced right now with a camera and display for about $30 shipped. Mouser also has it for about the same price, but they want $8 shipping too. I can wait as I have one working one and the display replacement from AllExpress has arrived. I ordered a second one as I damaged the display on the first, I will put Lisp on that one. Two ports are displayed when I plug it into my desktop, one for the ESP32 and one for the K210. What a lot of processing power in a small board. Anyway I was hoping not to have to compile a version for this, do you plan on a prebuilt for the MaixDuino? With these K210 boards being so inexpensive, which one do you favor? I will just pick up that.</p><p><br></p><p>I also like Forth from long ago and am playing around with Mecrisp Quintus on some FPGAs and Risc-5 boards, but that is 32 bit or smaller stuff. I noticed you have a branch on the Mecrisp Stellaris. I'm 73 and play with this stuff in an effort to keep the brain working. It isn't as good as it once was, but better than it would be if I didn't tax it a bit.</p><p><br></p><p>You do some amazing stuff.</p><p><br></p><p>Regards, Len</p>

Print this item

  Installation Issues
Posted by: ethandk - 12-23-2020, 02:55 PM - Forum: General - No Replies

<p><b>Operating on current Windows 10 machine</b></p><p><br></p><p>I am trying to install MicroPython for my ESP32 Wrover board--and am newer to embedded/software, more from systems/automation.&nbsp;</p><p><br></p><p>I have looked for what tools are needed and searched for similar issues already.</p><p>The tools I installed are Make and MSYS2 with GCC, G++.&nbsp;</p><p>I try to run the build files in various ways from examples I've seen and the issue consistently stops at mpy-cross as a make FAIL</p><p><br></p><p>When I run:</p><p><font color="#9a00b2">./BUILD.sh menuconfig</font></p><p><br></p><p>I get:&nbsp;</p><p><font color="#9a00b2">make[1]: Entering directory `/c/MicropythonESP32/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/tools/kconfig'</font></p><p><font color="#9a00b2">cc&nbsp; -DCURSES_LOC="&lt;curses.h&gt;" -DLOCALE -MD&nbsp; -c -o mconf.o mconf.c<br>make[1]: Leaving directory `/c/MicropythonESP32/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/tools/kconfig'<br>ls/esp-idf/tools/kconfig'&nbsp;<br>OK.</font></p><p><font color="#9a00b2"><br></font></p><p><font color="#9a00b2"><br></font></p><p><font color="#000000">Then when run:</font></p><p><font color="#9a00b2">./BUILD.sh all</font></p><p><font color="#000000"><br></font></p><p><font color="#000000">I get:</font></p><p><font color="#9a00b2">---------------------<br>MicroPython for ESP32<br></font></p><p><font color="#9a00b2">---------------------<br></font></p><p><font color="#9a00b2"><br></font></p><p><font color="#9a00b2">==================<br></font></p><p><font color="#9a00b2">Building mpy-cross<br></font></p><p><font color="#9a00b2">FAILED<br></font></p><p><font color="#9a00b2">==================<br></font></p><p><font color="#9a00b2">'make all' FAILED!</font><font color="#000000"><br></font></p><p><font color="#9a00b2"><br></font></p><p><font color="#9a00b2"><br></font></p><p><font color="#000000">This will later be at a professional level, in that I am trying to learn/understand the ESP world currently with limited time. If it appears I am missing fundamental pieces here, I'm all ears--I'm currently refreshing even my C, assembly, C++, Python, etc. much less knowing the environment. Thank you in advance.</font></p><p><font color="#000000"><br></font></p><p><br><br></p>

Print this item

  combined SPI and WIFI code on nodemcu blocking SPI
Posted by: yefj - 12-21-2020, 12:44 PM - Forum: MicroPython - No Replies

<p>

<!--StartFragment--><span style="color: rgb(36, 39, 41); font-family: Arial, &quot;Helvetica Neue&quot;, Helvetica, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Hello,I have built a wifi network which worked fine. then i added SPI commands to transfer data simultaniosly with wifi. if i use spi.write after conn=s.accept() my SPI sends nothing. If i write spi.write before conn=s.accept() it sends SPI sequence as shown in the photo bellow. Why the Socket commands block SPI commands?&nbsp;</span></p><p><span style="color: rgb(36, 39, 41); font-family: Arial, &quot;Helvetica Neue&quot;, Helvetica, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Thanks.</span><!--EndFragment-->

<br></p><p>

Code:
from machine import Pin,SPI
from time import sleep
import network
import usocket as socket
spi = machine.SPI(1, baudrate=1000000, polarity=0, phase=0)
ap_if = network.WLAN(network.AP_IF)
ssid = 'Sensor network4'
password = '123456789'
ap_if.active(True)
ap_if.config(essid=ssid, password=password)
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.bind(('',80))
s.listen(5)

while True:
    spi.write(b'1234')
    spi.write(b'1234')
    conn=s.accept()
    request=conn.recv(1024)
    request='<p style="color:red"><u></u></p><h1><u>The temperature is:</u><p></p>'
    request2=str(12.9)
    response='gyhkjgku'
    conn.send('HTTP/1.1 200 OK\n')
    conn.send('Content-type: text/html\n')
    conn.send('Connection: close\n\n')
    conn.sendall(request)
    conn.sendall(request2)
    conn.close()
</h1><br></p>

Print this item

Question How to add LVGL
Posted by: ckoever - 12-12-2020, 04:10 PM - Forum: General - No Replies

<p>I want to add LVGL to Micropython (using psRAM).</p><p>I have installed all the required packages on WSL2 and am able to build and flash the Micropython firmware. Unfortunately I am a bit overwhelmed how I bring LVGL into the LoBo Mircopython.<br></p><p><br></p><p><i style="">Board: Ttgo T-Energy 8 Mbyte Psram (ESP32-Wrover-B)</i><br></p>

Print this item

  esp32-s2 micropython
Posted by: alien1983 - 12-11-2020, 08:17 AM - Forum: Hardware - No Replies

<p>Hi,</p><p>is there any hope that the micropython port will appear on esp32-s2?</p><p><br></p><p>I already have 3 boards... esp32-s2<br></p><p>CircuitPython not suitable for more serious projects :/<br></p>

Print this item