Search found 45 matches

by Meekdai
Fri Jul 06, 2018 2:16 am
Forum: Newsletter archive
Topic: MicroPython Newsletter Issue 1
Replies: 29
Views: 316262

Re: MicroPython Newsletter Issue 1

That sounds great, I am looking forward to a Pyboard with WIFI capabilities.
Will the new Pyboard have the function of websocket sever and webREPL?
by Meekdai
Fri Jul 06, 2018 1:31 am
Forum: MicroPython pyboard
Topic: I don't need echo when using repl
Replies: 7
Views: 8255

Re: I don't need echo when using repl

Thank you Damien , I have a project that wants to communicate with the host computer through the REPL. But echo and ">>>" are not needed. I view the source code and made some modifications (pyexec.c readline.c) to implement my current functionality. Before modification: serial send: GetVersion()\r\n...
by Meekdai
Wed Jul 04, 2018 10:41 am
Forum: MicroPython pyboard
Topic: I don't need echo when using repl
Replies: 7
Views: 8255

I don't need echo when using repl

Hi everyone , when I using REPL, I found that it has the function of echo. This problem does not exist when I use secureCRT, but when I receive serial port data by Serial debugging assistant, echo is appeared. I guess secureCRT should hide echo which I was send. Is there any way to cancel it? :?: :?:
by Meekdai
Wed Jun 06, 2018 7:48 am
Forum: MicroPython pyboard
Topic: I want to use REPL while using uasyncio
Replies: 3
Views: 70433

Re: I want to use REPL while using uasyncio

Thanks , I use _thread to solve my problem. I found that when using _thread , REPL work well. import _thread import time def blink( threadName, delay): gled = LED(2) while True: gled.toggle() time.sleep_ms(delay) Tblink=_thread.start_new_thread( blink, ("Thread-1", 500, ) )
by Meekdai
Wed Jun 06, 2018 5:03 am
Forum: MicroPython pyboard
Topic: I want to use REPL while using uasyncio
Replies: 3
Views: 70433

I want to use REPL while using uasyncio

When using uasyncio, the program is looping and cannot use REPL.Is there a way to achieve both at the same time? Here is my code: import uasyncio as asyncio async def blink1(): bled=LED(4) while True: bled.toggle() await asyncio.sleep_ms(1000) async def blink2(): gled = LED(2) while True: gled.toggl...
by Meekdai
Wed May 23, 2018 2:05 am
Forum: MicroPython pyboard
Topic: Use the serial port to update the firmware
Replies: 4
Views: 3158

Re: Use the serial port to update the firmware

1. I use pyb.bootloader() to initiate the bootloader, and send 0x7f in USART1, device reply 0x0 0x0 0x0. 2. I use pyb.bootloader() to initiate the bootloader,and use DfuSeDemo software ,device enter DFU mode. 3. I make BOOT0 high to initiate the bootloader, and send 0x7f in USART1,device reply 0x79....
by Meekdai
Tue May 22, 2018 5:35 am
Forum: MicroPython pyboard
Topic: Use the serial port to update the firmware
Replies: 4
Views: 3158

Re: Use the serial port to update the firmware

To initiate the bootloader on the UART you need to make BOOT0 high, and then press and release RESET (keep BOOT0 high while releasing RESET). As you said, it goes into bootloader mode by make BOOT0 high. I found another way initiate the bootloader over here: http://docs.micropython.org/en/latest/py...
by Meekdai
Mon May 21, 2018 3:45 am
Forum: MicroPython pyboard
Topic: Use the serial port to update the firmware
Replies: 4
Views: 3158

Use the serial port to update the firmware

Hello everyone,
As far as I know, only use DFU to update the firmware.
Is there a way to update the firmware on Pyboard through the serial port?
by Meekdai
Tue Apr 17, 2018 9:17 am
Forum: MicroPython pyboard
Topic: STM32 PC14 PC15
Replies: 2
Views: 2578

Re: STM32 PC14 PC15

I think you'd need to add the 2 pins to pins.csv for your board. You'd also need to remove the oscillator and loading caps, and disable the LSE. I think you need to set MICROPY_HW_RTC_USE_LSE to 0: https://github.com/micropython/micropython/blob/d12483d93662d0aa1a421f4f8348c7e960c25183/ports/stm32/...
by Meekdai
Tue Apr 17, 2018 3:13 am
Forum: MicroPython pyboard
Topic: STM32 PC14 PC15
Replies: 2
Views: 2578

STM32 PC14 PC15

Hello!

I do not need to use the crystal 32.768KHZ, I would like to use GPIO port PC14 and PC15, what should I do?
I have solved the hardware and how the software needs to be handled.

Thanks!