Search found 717 matches

by OutoftheBOTS_
Wed Oct 02, 2019 5:40 am
Forum: General Discussion and Questions
Topic: ESP32 Network Behavior
Replies: 24
Views: 1266

Re: ESP32 Network Behavior

I am unable to solve this seemingly simple problem - I cannot convert an integer (> 255) to bytes, tried this and to no avail: if it is >255 then it can easily be packed in to a char import ustruct positive_int_less_than_255 = 210 byte_var = ustruct.pack("B", positive_int_less_than_255) You can pac...
by OutoftheBOTS_
Tue Oct 01, 2019 8:51 pm
Forum: ESP32 boards
Topic: Differences between Micropython ports for ESP32 and ESP8266
Replies: 34
Views: 16431

Re: Differences between Micropython ports for ESP32 and ESP8266

If you google you should find a number of FTP servers for micropython that run on ESP32 and ESP8266 that are great for transferring files to the micropython board.
by OutoftheBOTS_
Tue Oct 01, 2019 9:46 am
Forum: General Discussion and Questions
Topic: ESP32 Network Behavior
Replies: 24
Views: 1266

Re: ESP32 Network Behavior

Can you post your code? Also I would try to avoid any changes to the data that would result in processor time like str(adc1,adc2,adc3)+"\" You could just send each value to the socket directly like: send.conn(adc1) send.conn(b",") send.conn(adc2) send.conn(b",") send.conn(adc3) send.conn(b"\") That...
by OutoftheBOTS_
Wed Sep 25, 2019 8:32 pm
Forum: Development of MicroPython
Topic: ulab, or what you will - numpy on bare metal
Replies: 62
Views: 4802

Re: ulab, or what you will - numpy on bare metal

This is great functionality that MP has been missing compared to cpython.
by OutoftheBOTS_
Wed Sep 25, 2019 6:22 am
Forum: MicroPython pyboard
Topic: how to use viper decorator?
Replies: 16
Views: 1066

Re: how to use viper decorator?

as quoted above by RobertHH using a 16 bit pointer instead of using mem16 compiles directly to 2 machine instructions.
memptr = ptr16(1073873940)
by OutoftheBOTS_
Sat Sep 21, 2019 8:02 pm
Forum: General Discussion and Questions
Topic: micropython
Replies: 4
Views: 366

Re: micropython

I don't think that the STM32F103 will have enough flash and RAM to run Micropython
by OutoftheBOTS_
Tue Sep 17, 2019 9:08 pm
Forum: ESP8266 boards
Topic: ESP8266 + MCP23017 + Rotary Encoder
Replies: 3
Views: 384

Re: ESP8266 + MCP23017 + Rotary Encoder

another easy fix you might want to consider is switching to a ESP32 as it has more pins :)
by OutoftheBOTS_
Sun Sep 15, 2019 8:55 am
Forum: General Discussion and Questions
Topic: displaying byte data with REPL
Replies: 3
Views: 269

Re: displaying byte data with REPL

Most of the time I use ustruct.unpack to unpack the bytes from serial in to what ever they suppose to be.
by OutoftheBOTS_
Sat Sep 14, 2019 8:58 pm
Forum: ESP32 boards
Topic: Wanting to get into making game content for the M5Stack
Replies: 1
Views: 184

Re: Wanting to get into making game content for the M5Stack

A member here has developed a really nice game engine for micropython see this thread viewtopic.php?f=15&t=6771&p=38512&hilit=game#p38512
by OutoftheBOTS_
Mon Sep 09, 2019 1:21 am
Forum: Development of MicroPython
Topic: compiling C modules into loadable shared objects
Replies: 33
Views: 2591

Re: compiling C modules into loadable shared objects

case 1 is that I write a C function to do a heavy computational task maybe a numpy type task e.g fft. That's the case that was demoed in Damien's video from the Melbourne MicroPython Meetup. It's the same as generating the QR code. Again Jimmo I can't thank you enough for continuing to volunteering...