Search found 3246 matches

by dhylands
Wed Dec 04, 2019 12:00 am
Forum: MicroPython pyboard
Topic: rshell directory syntax
Replies: 5
Views: 128

Re: rshell directory syntax

As a temporary workaround, from the rshell prompt you can do a cd /steve/Projects/uPython then cd .. should work.

rshell still doesn't recognize drive letters, so there isn't any way to access files on the C: drive from the D: drive.
by dhylands
Tue Dec 03, 2019 11:22 pm
Forum: MicroPython pyboard
Topic: rshell directory syntax
Replies: 5
Views: 128

Re: rshell directory syntax

It seems to be a windows peculiarity. rshell is looking for a forward slash cd and when you do cd .. it will remove any trailing directory delimited by a forward slash. Under windows, the current directory is presented with a back-slash and that's what's causing the problem. I'll file an issue with ...
by dhylands
Sun Dec 01, 2019 3:54 am
Forum: MicroPython pyboard
Topic: rshell directory syntax
Replies: 5
Views: 128

Re: rshell directory syntax

Yep. It tries to treat the micropython filesystem as an extension of the host file system, and tries to provide a command line like experience similar to Linux. I don’t know how cd . behaves but cd .. should behave as expected. What type of problems are you running into? Can you include a copy of a ...
by dhylands
Fri Nov 29, 2019 7:06 am
Forum: General Discussion and Questions
Topic: [Solved]Display PYFLASH of STM32L4R9IDISC in Ubuntu/Window
Replies: 6
Views: 209

Re: Display PYFLASH of STM32L4R9IDISC in Ubuntu/Window

If you had non-micropython firmware flashed on the board before flashing micropython, then you should do a mass erase and then flash micropython. Or factory reset the filesystem as documented here: http://docs.micropython.org/en/latest/wipy/tutorial/reset.html#factory-reset-the-filesystem Whwn you f...
by dhylands
Fri Nov 22, 2019 5:25 am
Forum: General Discussion and Questions
Topic: printing an ASCII character by number
Replies: 1
Views: 74

Re: printing an ASCII character by number

It's because of the extra parenthesis in the print that's in the program. If you remove those parenthessis, then it will print the degree symbol. Otherwise, what you're asking it to do is to print a tuple, and when print a tuple, it prints essentially a repr(x) where x is each element of the tuple. ...
by dhylands
Sun Nov 17, 2019 2:22 pm
Forum: Other Boards
Topic: stm32 F401RE all pin
Replies: 6
Views: 670

Re: stm32 F401RE all pin

I would think so but I’ve never used arduino on these devices. You’d be better off asking on an arduino forum.
by dhylands
Sat Nov 16, 2019 11:06 pm
Forum: MicroPython pyboard
Topic: Servo pin
Replies: 3
Views: 264

Re: Servo pin

By my count, there are 18 PWM lines that could be used (on the pyboard). You can use multiple channels on the same timer. But you can't use CH2N and CH2 (since CH2N is an inverse of CH2 in hardware). Here's my list: Timer 1, channels 1, 2, and 3 Timer 2, channels 1, 3, and 4 Timer 4, channels 1, 2, ...
by dhylands
Sat Nov 16, 2019 9:59 pm
Forum: MicroPython pyboard
Topic: Servo pin
Replies: 3
Views: 264

Re: Servo pin

The Servo pins only support 1-4 which map to X1-X4 (See: http://docs.micropython.org/en/latest/library/pyb.Servo.html). However, you can drive servos using any pin that can generate a PWM signal. Here's some code which generates a typical servo pulse: https://github.com/dhylands/upy-examples/blob/ma...
by dhylands
Sat Nov 16, 2019 9:49 pm
Forum: Other Boards
Topic: stm32 F401RE all pin
Replies: 6
Views: 670

Re: stm32 F401RE all pi

I don't understand what you're asking. The pyb module is available on the pyboard. Using the machine module it probably preferred, since it's available on most of the boards. This is the documentation for pyb.Pin: http://docs.micropython.org/en/latest/library/pyb.Pin.html and this is the documentati...