Search found 3268 matches

by dhylands
Tue Dec 17, 2019 3:40 am
Forum: MicroPython pyboard
Topic: rshell paste
Replies: 3
Views: 279

Re: rshell paste

Yeah - Entering Control-V just sends the Control-V character to the REPL.

You need to use the PASTE command from whatever terminal program you're using. For example, on my MacBook I can use Command-V to paste and it pastes properly.
by dhylands
Wed Dec 11, 2019 7:01 pm
Forum: MicroPython pyboard
Topic: Problem with logging data to sd card - loss of usb connection in repl mode
Replies: 2
Views: 298

Re: Problem with logging data to sd card - loss of usb connection in repl mode

If you're logging to a file, you should make sure that you put pyb.usb_mode('VCP') in your boot.py file (i.e. you need to disable MSC). If you don't then the host will corrupt your sd filesystem. Your code does an open of /sd/log/diary. Did you create the log directory on the sd card already? If not...
by dhylands
Wed Dec 04, 2019 12:00 am
Forum: MicroPython pyboard
Topic: rshell directory syntax
Replies: 5
Views: 475

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

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

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

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

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

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

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, ...