Search found 2072 matches

by jimmo
Sat May 25, 2019 2:03 pm
Forum: ESP8266 boards
Topic: How to disable all REPL
Replies: 6
Views: 2653

Re: How to disable all REPL

I think you're going to have to make a custom firmware build to disable it. If you follow through ports/esp8266/main.c, you can see how mp_reset() runs your boot.py and main.py then init_done() drops into the REPL loop.
by jimmo
Sat May 25, 2019 1:25 pm
Forum: ESP8266 boards
Topic: espnow esp8266 1.9.4
Replies: 7
Views: 3624

Re: espnow esp8266 1.9.4

uCTRL wrote:
Sat May 25, 2019 12:38 pm
Anyone working on ESP_NOW?
Looks like there have been more recent comments on the linked PR since your last post.
by jimmo
Sat May 25, 2019 12:52 pm
Forum: Programs, Libraries and Tools
Topic: libusb
Replies: 3
Views: 924

Re: libusb

Hi, Just to confirm I understand your question -- you have some other device, that normally plugs into a PC host and some software (using libusb) communicates with it. You'd like to instead plug it into your STM32, i.e. the STM32 running MicroPython is the USB host? (Maybe via an OTG cable if your S...
by jimmo
Sat May 25, 2019 6:34 am
Forum: Drivers for External Components
Topic: L298N Motor Driver Board Pyboard 6V DC motors
Replies: 11
Views: 3260

Re: L298N Motor Driver Board Pyboard 6V DC motors

johnbanes wrote:
Sat May 25, 2019 12:58 am
Here is the board I'm using with the L298N.
Sorry, I meant the board that contains the L298N. e.g. https://tronixlabs.com.au/robotics/moto ... australia/
by jimmo
Fri May 24, 2019 3:59 pm
Forum: General Discussion and Questions
Topic: double precision float on ESP8266
Replies: 30
Views: 6457

Re: double precision float on ESP8266

default family is 64bits I try 128bit adn get an error The FixedPoint library is quite large -- it's going to use up a significant amount of the RAM on your ESP8266. This is probably why it fails at 128bit? I generated an mpy module from FixedPoint.py and was able to do at least basic stuff in 128-...
by jimmo
Fri May 24, 2019 3:29 pm
Forum: Pyboard D-series
Topic: Is my tile36 missing something or is this code sketchy
Replies: 8
Views: 1590

Re: Is my tile36 missing something or is this code sketchy

rhubarbdog wrote:
Fri May 24, 2019 2:38 pm
While your doing that is it worth changing this to read

Code: Select all

def save_nvram(addr):
Writing to nv ram on the broadcast address (1) will update the nvram of all tile36 meaning that any unwanted brightness settings will be recorded for future use
Yeah, good idea!
by jimmo
Fri May 24, 2019 3:27 pm
Forum: Pyboard D-series
Topic: Pyboard D double precision
Replies: 7
Views: 1818

Re: Pyboard D double precision

Yes, it would appear so. I don't have an SF6 to confirm, but the config for the boards is below: $ grep MICROPY_FLOAT_IMPL boards/PYBD*/mpconfigboard.mk boards/PYBD_SF2/mpconfigboard.mk:MICROPY_FLOAT_IMPL = single boards/PYBD_SF3/mpconfigboard.mk:MICROPY_FLOAT_IMPL = single boards/PYBD_SF6/mpconfigb...
by jimmo
Fri May 24, 2019 3:18 pm
Forum: Other Boards
Topic: [Any STM32 board] How much time this loop should take ?
Replies: 14
Views: 2654

Re: [Any STM32 board] How much time this loop should take ?

I have this one: https://reference.digilentinc.com/reference/instrumentation/openscope-mz/start?redirect=1. Specs on the right. Do you think I can use it to measure out the SYSCLK and HSE frequencies ? Yes....just. In logic analyser mode at 10MS/s. With the /5 divider on MCO, you'll either get 1.6M...
by jimmo
Fri May 24, 2019 2:18 pm
Forum: Pyboard D-series
Topic: Is my tile36 missing something or is this code sketchy
Replies: 8
Views: 1590

Re: Is my tile36 missing something or is this code sketchy

I've read the docs. The code is sketchy it should read. def set_i2caddr(addr=60, oaddr=1): """ modify I2C address and save it to NVRAM """ ba = bytearray(b'\x02\x0eI2C ') ba[-1] = (oaddr*2) & 0xfe i2c.writeto(addr, ba) save_nvram(addr) I think the intention in the example code is that "addr" is the...
by jimmo
Fri May 24, 2019 11:51 am
Forum: Pyboard D-series
Topic: Is my tile36 missing something or is this code sketchy
Replies: 8
Views: 1590

Re: Is my tile36 missing something or is this code sketchy

Yup, exactly. That said... I just looked at this code more closely. The constant at the top does nothing. It would seem that the tile always responds to the address 1 (is this a feature of the firmware on this tile?), but can be configured with a specific address, defaulting to 60. For some reason t...