Search found 60 matches

by manseekingknowledge
Sat May 25, 2019 7:17 am
Forum: ESP8266 boards
Topic: How to disable all REPL
Replies: 6
Views: 665

How to disable all REPL

MicroPython v1.9.4-704-g9d9c2cf70 I want to completely disable REPL. WebREPL seems easy enough to prevent (just don't ever import webrepl_setup), but regardless of what I try REPL via a wired connection always works. Here are some of the things I've tried: # Attempt 1: Tried to disable terminal dupl...
by manseekingknowledge
Mon Nov 26, 2018 3:05 am
Forum: ESP8266 boards
Topic: modussl_axtls.c failing to compile
Replies: 0
Views: 258

modussl_axtls.c failing to compile

I'm getting this error when I build at commit 51482ba92568a9793fea34213ed74be850920a5a. I don't get this error if I build from a micropython git repo which I cloned on my Ubuntu 18.04.1 Virtual Box guest which is running on a Windows 10 host, regardless if I clone it into the directory that is share...
by manseekingknowledge
Sat Jun 23, 2018 9:08 am
Forum: ESP8266 boards
Topic: How to build non-python static resource files into binary image
Replies: 4
Views: 666

Re: How to build non-python static resource files into binary image

data_to_py.py works like a charm. I was around 95% RAM usage, but accessing the byte data from flash let me reclaim about 40% of that so now I'm around 55%. The image size is larger now than it was when I was using the base64 encoding, but that is to be expected. I had to adjust the segment sizes as...
by manseekingknowledge
Thu Jun 21, 2018 12:52 pm
Forum: ESP8266 boards
Topic: How to build non-python static resource files into binary image
Replies: 4
Views: 666

Re: How to build non-python static resource files into binary image

I assume the obvious approach of storing the data in a file is unacceptable: is the aim to save RAM? Thanks for your reply. I'm not sure I understand your first comment. What I really want is to have my JS file right next to my boot.py file after I flash the ESP8266 assuming the convenience gained ...
by manseekingknowledge
Wed Jun 20, 2018 2:15 pm
Forum: ESP8266 boards
Topic: How to build non-python static resource files into binary image
Replies: 4
Views: 666

How to build non-python static resource files into binary image

I have my build script set up to freeze all my python modules and that works well, but I want to bake a JS file into my image. How do I do that?
by manseekingknowledge
Thu Nov 30, 2017 2:29 am
Forum: ESP8266 boards
Topic: socket.recvfrom() not returning address
Replies: 1
Views: 576

Re: socket.recvfrom() not returning address

According to this SO answer, socket.recvfrom() only works with UDP connections so keeping track of the socket to client address mapping will need to be done manually.
by manseekingknowledge
Thu Nov 30, 2017 1:18 am
Forum: ESP8266 boards
Topic: over clocking
Replies: 7
Views: 1103

Re: over clocking

How to change the frequency is described in the General Board section here.

Code: Select all

import machine

machine.freq()          # get the current frequency of the CPU
machine.freq(160000000) # set the CPU frequency to 160 MHz
by manseekingknowledge
Wed Nov 29, 2017 7:19 am
Forum: ESP8266 boards
Topic: socket.recvfrom() not returning address
Replies: 1
Views: 576

socket.recvfrom() not returning address

Looks like socket.recvfrom() isn't returning the sending address correctly. The data is still returned correctly though. Doesn't see seem to matter if I use socket or usocket. Not sure if it is a bug or if I'm doing something wrong. I'm at the tip of master (MicroPython v1.9.3-65-g74fad35). data, ad...
by manseekingknowledge
Sun Oct 29, 2017 9:57 pm
Forum: ESP8266 boards
Topic: Error building ds18x20.py with no local changes
Replies: 1
Views: 516

Re: Error building ds18x20.py with no local changes

I figured out the problem, but my solution is not optimal. I had set up Vagrant VM to share the micropython directory to my Windows machine where I was thing planning to use SmartGit to track my changes to MicroPython. It seems there are (at the least) some time stamp issues and possibly also some l...
by manseekingknowledge
Sun Oct 29, 2017 5:33 pm
Forum: ESP8266 boards
Topic: Error building ds18x20.py with no local changes
Replies: 1
Views: 516

Error building ds18x20.py with no local changes

I've been using this Adafruit guide which uses a Vagrant VM for building: https://learn.adafruit.com/building-and-running-micropython-on-the-esp8266?view=all This installs esp-open-sdk V2.0.0_16_08_10 and checks out MicroPython to the tip of master which is 24c8eda744e6c13866d70caec1b5c316caee64ac a...