Search found 3211 matches

by dhylands
Wed Jun 05, 2019 12:38 am
Forum: General Discussion and Questions
Topic: Debugging boot, safe mode ?
Replies: 10
Views: 425

Re: Debugging boot, safe mode ?

And to answer your other question, yes the USR button is used to manipulate the various boot modes. See: http://docs.micropython.org/en/latest/wipy/tutorial/reset.html?highlight=boot The update_reset_mode function determines what the boot mode is: https://github.com/micropython/micropython/blob/faf3...
by dhylands
Wed Jun 05, 2019 12:11 am
Forum: General Discussion and Questions
Topic: Debugging boot, safe mode ?
Replies: 10
Views: 425

Re: Debugging boot, safe mode ?

In the pyboiard schematics: https://raw.githubusercontent.com/micropython/pyboard/master/PYBv10b.pdf The USR button is at the very bottom of the page near the center. You configure which pin is the USR button in your mpconfigboard.h https://github.com/micropython/micropython/blob/faf3d3e9e93a71b3947...
by dhylands
Tue Jun 04, 2019 9:38 pm
Forum: General Discussion and Questions
Topic: Debugging boot, safe mode ?
Replies: 10
Views: 425

Re: Debugging boot, safe mode ?

Do you have anything connected to X17? That's also connected to the USR button. There is a pullup resistor on the line (to pull USR to 3.3v when the button isn't pressed). if it had a cold solder joint then the line might float. You could try adding an external pullup resistor between X17 and 3.3v t...
by dhylands
Tue Jun 04, 2019 7:57 pm
Forum: General Discussion and Questions
Topic: Debugging boot, safe mode ?
Replies: 10
Views: 425

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: 245

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: 389

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: 671

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: 478

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: 405

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: 219

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.