Search found 15 matches

by DavidRKnowles
Wed Feb 05, 2020 4:10 am
Forum: ESP32 boards
Topic: Trouble getting a Serial Repl
Replies: 5
Views: 736

Trouble getting a Serial Repl

Hi guys, I have a nodemcu esp32 (well two of them), this one seems to have some form of issue with the connection Behaviour It flashes fine as long as you hold the boot button while resetting then run the esptool.py flasher and as that is connecting release the boot/gpio0. It will not connect in uPy...
by DavidRKnowles
Sun Jan 19, 2020 11:36 am
Forum: General Discussion and Questions
Topic: ctypes into uctypes for crc communication
Replies: 2
Views: 852

Re: ctypes into uctypes for crc communication

I’m not sure why they’re using ctypes here, ctypes is for calling C functions and there are no C functions being called here. It seems all they want is to slice 8 bits out of an integer, which is easily done using the & operator, no ctypes needed. The following seems to work for me in CPython, givi...
by DavidRKnowles
Sun Jan 19, 2020 5:03 am
Forum: General Discussion and Questions
Topic: ctypes into uctypes for crc communication
Replies: 2
Views: 852

ctypes into uctypes for crc communication

Finally got some time to jump back onto micropython and finish a project I had for communicating with my offgrid inverter. It is a MPP Solar unit and requires a CRC with the commands to ensure all is healthy with the data, the python project I am getting most of the ideas with regards to communicati...
by DavidRKnowles
Fri Oct 11, 2019 4:14 am
Forum: General Discussion and Questions
Topic: Micropython Webserver
Replies: 3
Views: 777

Re: Micropython Webserver

Thanks guys, Yeah its inevitable isn't it lol. I always aim to make things as efficient as possible, and when I came across uasyncio I thought damn, this does everything I have hacked together and more, but it does it better. I have my framework working alright after some time playing around last ni...
by DavidRKnowles
Wed Oct 09, 2019 3:11 am
Forum: General Discussion and Questions
Topic: Micropython Webserver
Replies: 3
Views: 777

Micropython Webserver

Hi, A month ago I got extremely frustrated in writing C/C++ for my home IOT projects, I am not a native C coder and dealing with strings and memory often had me gouging out my eyes. Then I came across a microphone video and while I have never used python I found it extremely easy to do programming i...