Search found 3482 matches

by dhylands
Fri Nov 27, 2020 4:38 am
Forum: ESP8266 boards
Topic: LCD 1602 - Library
Replies: 55
Views: 35781

Re: LCD 1602 - Library

When you power the display on do you see some black squares? If you don't see any black squares then you need to adjust the contrast voltage.
by dhylands
Thu Nov 26, 2020 8:35 pm
Forum: MicroPython pyboard
Topic: Using UART4 in PC10 and PC11 pins
Replies: 7
Views: 110

Re: Using UART4 in PC10 and PC11 pins

I see a typo in my respone. I entered A0 twice when it should have been one for A0 and one for A1
by dhylands
Thu Nov 26, 2020 5:29 pm
Forum: MicroPython pyboard
Topic: Using UART4 in PC10 and PC11 pins
Replies: 7
Views: 110

Re: Using UART4 in PC10 and PC11 pins

The README.md here: https://github.com/micropython/micropython/tree/master/ports/stm32 (you need to scroll down past the file list to see it) has build instructions. To change things in python, you'd do something like this: uart = pyb.UART(4,115200) # Switch A0/A1 back to GPIO inputs (after opening ...
by dhylands
Thu Nov 26, 2020 2:23 pm
Forum: MicroPython pyboard
Topic: Using UART4 in PC10 and PC11 pins
Replies: 7
Views: 110

Re: Using UART4 in PC10 and PC11 pins

When you use pyb.UART(4,115200) then it will use the pins configured in the mpconfigboard.h file for your board. For example, the pyboard is configured to use A0 and A1 for UART4: https://github.com/micropython/micropython/blob/5a7027915c3b9ec2dffc3af9530dad90b56b8cc0/ports/stm32/boards/PYBV11/mpcon...
by dhylands
Thu Nov 26, 2020 2:12 pm
Forum: General Discussion and Questions
Topic: rshell no micropython boards connected
Replies: 2
Views: 78

Re: rshell no micropython boards connected

I'm pretty sure that rshell will only automatcally detect the pybord. For other devices you need to specify the port using the -p command:

Code: Select all

 rshell -p /dev/ttyUSB0
or use the connect command from within rshell.
by dhylands
Fri Nov 20, 2020 7:55 pm
Forum: Development of MicroPython
Topic: micropython origins?
Replies: 4
Views: 171

Re: micropython origins?

The original Kickstarter for MicroPython can be found here: https://www.kickstarter.com/projects/214379695/micro-python-python-for-microcontrollers It says that it follows the "Python 3.3 grammar and language semantics" The very first commit was made to the repository in Oct, 2013. This page: http:/...
by dhylands
Thu Nov 19, 2020 4:02 pm
Forum: Pyboard D-series
Topic: EACCES issue with '/sd' subdirectory
Replies: 1
Views: 585

Re: EACCES issue with '/sd' subdirectory

Did you try using "os.rmdir("/sd/ControllerData") (or whatever the correct path is) and is the directory empty?

os.rmdir("ControllerData") will try to remove the file from the current directory, which I think by default would be /
by dhylands
Wed Nov 18, 2020 9:03 pm
Forum: Development of MicroPython
Topic: UART (Pin Alternate Functions)
Replies: 3
Views: 965

Re: UART (Pin Alternate Functions)

OK, I have to really call the stm32 pins. So, when some pins don't have the alternate function, which is in the: Pin.af_list(). I can't add a new function to the pins? No. The AF functions are hard-coded in the hardware. You can find the detailed mapping in the datasheet for the particular processo...
by dhylands
Wed Nov 18, 2020 6:55 pm
Forum: ESP32 boards
Topic: Cross compiling Micropython from GITHUb source -errors
Replies: 20
Views: 2003

Re: Cross compiling Micropython from GITHUb source -errors

What I do is to use WSL to build, but I put the micropython source on a regular windows directory. It turns out that it isn't safe for windows to directly access files from WSL, but the other way around works fine. By keeping the source in a normal windows location it also allows regular windows edi...
by dhylands
Fri Nov 13, 2020 6:34 pm
Forum: General Discussion and Questions
Topic: Moving files from flash to sd
Replies: 8
Views: 961

Re: Moving files from flash to sd

Having said that MSC is generally not recomended, in order for MSC to see the sd card, it needs to be mounted in boot.py. USB (and MSC if enabled) is brought up between boot.py executing and main.py executing. If the sd card isn't mounted when USB is brought up then the internal flash will be what i...