2525 views|0 replies

140

Posts

0

Resources
The OP
 

F407 porting MicroPython [Copy link]


Preparation: 1. Download rt_thread source code 2. Download ENV tool: 3. Hardware F407 4. Open the BSP/stm32f4xx-HAL folder under the rt_thread source code path and open it with the ENV tool 5. In RT-Thread online packages/language Under the packages path, select the micropython package 369475 6. Save the configuration, scons --target=mdk5, and generate the project. After full compilation, burn it to the board. You can see that the system starts successfully.
7. Enter the python command, you can see that the python transplantation is successful
8.Enter the following command, you can controlLEDlight on and off
PinDevice pin number
Development board pin
Function
81
GPIOD0
LED1
Examples of instructions are as follows :
>>> from machine import Pin>>> p_out = Pin(("X1", 81), Pin.OUT_PP)>>> p_out.value(1) # set io high(annihilation)>>> p_out.value(0) # set io low(light)
Source code path:
链接已隐藏,如需查看请登录或者注册
Password: c89k


TIM截图20180815114550.png (132.46 KB, downloads: 0)

TIM截图20180815114550.png
This post is from NXP MCU
 

Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list