i want to change the pin configuration of micropython. Micropython is running on the STM32F429i board and i want to see some led blinking.
I made some new folder in /micro-python/stmhal/boards and named it STM32F429. I put in this folder the same files as in the STM32f4DISC folder.
in the mpconfigboard.h file i changed:
Code: Select all
...
#define MICROPY HW_LED3 (pin_G13) // red
#define MICROPY HW_LED4 (pin_G14) //blue
Code: Select all
#define STM32F429xx
LED_RED |PG13
LED_BLUE |PG14
Makefile:
BOARD ?= STM32F429
and i put some python code in the main.py file (main.c):
Code: Select all
"# main.py -- put your code here!\r\n"
"#blubb\n"
"import pyb\n"
"def blink():\n"
" pyb.LED(3).on()\n"
" pyb.LED(4).on()\n"
" pyb.delay(300)\n"
" pyb.LED(3).off()\n"
" pyb.LED(4).off()\n"
" pyb.delay(300)\n"
"\n"
"for i in range(20):\n"
" blink()\n"
"\n"
...
if(reset_mode ==1 || res == FR_NO_FILESYSTEM){
...
What am i doing wrong?
thanks for your help