Search found 3198 matches

by dhylands
Tue Jun 04, 2019 7:57 pm
Forum: General Discussion and Questions
Topic: Debugging boot, safe mode ?
Replies: 10
Views: 335

Re: Debugging boot, safe mode ?

Are you running a linux system? If so then check to see if you have modemmanager installed and uninstall it. modemmanager will open serial ports that looks like modems and send AT commands to them.
by dhylands
Tue Jun 04, 2019 1:07 am
Forum: MicroPython pyboard
Topic: How can I let my pyboard be registered as a USB Flash Drive while connecting through UART
Replies: 3
Views: 170

Re: How can I let my pyboard be registered as a USB Flash Drive while connecting through UART

The USB Mass Storage capability can only be accessed through the USB interface. However, there are tools like rshell http://github.com/dhylands/rshell or ampy https://github.com/pycampers/ampy and others which will allow you to copy files to/from the filesystem over a serial interface (Disclaimer: I...
by dhylands
Fri May 31, 2019 4:05 pm
Forum: Other Boards
Topic: [TM4C123] REPL debugging info
Replies: 9
Views: 305

Re: [TM4C123] REPL debugging info

It would be useful to know what debugging information you're talking about.
by dhylands
Tue May 28, 2019 2:37 pm
Forum: General Discussion and Questions
Topic: IR encoder pyboard V1,1
Replies: 10
Views: 490

Re: IR encoder pyboard V1,1

And here's an example that uses the hardware quadrature encoder. https://github.com/dhylands/upy-examples/blob/master/encoder3.py Note that it also has code to generate a quadrature signal that I used for testing. You don't need that portion of the code to just use quadrature. This example: https://...
by dhylands
Mon May 27, 2019 2:39 pm
Forum: Drivers for External Components
Topic: Communication with 16 key capacitive keyboard - TTP229-B
Replies: 9
Views: 370

Re: Communication with 16 key capacitive keyboard - TTP229-B

I not familiar with the device in question but in your code I noticed that they is no delay between your first on/off. The on happens just before the for loop and the off happens immediately inside the for loop. You should also measure your pulses on a scope or logic analyzer to see how close they a...
by dhylands
Fri May 24, 2019 11:14 pm
Forum: Development of MicroPython
Topic: [SOLVED] USB connection mistery
Replies: 7
Views: 327

Re: v1.10 mistery

Do you have ModemManager installed on your machine? If it is installed then it will try to connect to /dev/ttyACM0 when you plug in your pyboard and it will send AT commands to your board. Depending on the code you've got running, this can cause issues. I normally unintall modemmanager: sudo apt rem...
by dhylands
Fri May 24, 2019 1:56 pm
Forum: Programs, Libraries and Tools
Topic: how find a word in txt file
Replies: 4
Views: 181

Re: how find a word in txt file

I normally just use a python file called something like config.py which contains

Code: Select all

SSID = "myssid"
password = "mypassword"
and then you can just import config and use config.SSID and config.password

If you want to store new passwords programmatically, just write out a new file.
by dhylands
Fri May 24, 2019 1:41 pm
Forum: General Discussion and Questions
Topic: utime.ticks_diff() between pycom and upython
Replies: 4
Views: 203

Re: utime.ticks_diff() between pycom and upython

Presumably, the second call should be ticks_diff(1, 2)
by dhylands
Fri May 24, 2019 4:46 am
Forum: Other Boards
Topic: [Any STM32 board] How much time this loop should take ?
Replies: 14
Views: 466

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

Did you take flash latency into consideration, since the code is executing from flash?

Is your code available someplace (i.e github) that I can build for a 401 board with a known HSE crystal and compare results?
by dhylands
Thu May 23, 2019 7:08 pm
Forum: Other Boards
Topic: STM32L476: can´t convert int object to str implicitly
Replies: 4
Views: 207

Re: STM32L476: can´t convert int object to str implicitly

machine.Pin and pyb.Pin are aliases for each other. They both present the identical API. The reason for them both existing is historical. pyb.Pin existed first and then machine.Pin was created. pyb.Pin was left in for comparability with the older code. New code should use machine.Pin. Note that you ...