Search found 11 matches

by JohnLittle
Tue Jun 02, 2020 7:57 pm
Forum: General Discussion and Questions
Topic: Calling mp_hal_delay_ms() from a native module, what am I doing wrong?
Replies: 1
Views: 1458

Calling mp_hal_delay_ms() from a native module, what am I doing wrong?

Hello, I tried to make this module as simple as possible to try and understand how to use mp_hal_delay_ms() in a native module. It's just a wrapper called mydelay. So I have these two files (based on the factorial example ). mydelay.c and Makefile as follows: // Include the header file to get access...
by JohnLittle
Fri May 29, 2020 10:13 pm
Forum: Other Boards
Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
Replies: 167
Views: 301718

Re: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards

@holberg, thank you for your efforts, this is definitely going in the right direction! Just a note about viper magic, I tried this for fill() instead of your code: import utime import machine LCD_REG = const(0x60000002) LCD_RAM = const(0x60080002) @micropython.viper def fill(n: int): width=320 heigh...
by JohnLittle
Sun Jul 21, 2019 4:53 pm
Forum: Other Boards
Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
Replies: 167
Views: 301718

Re: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards

Wow, that's amazing, thanks for doing this! I wonder if jupyter + micropython can be shared somehow to avoid duplicating work, I seem to have typed exactly the same thing. For reference, help(stm) outputs the following (see below), so the register address is stm.RCC_AHB3ENR and FSMEN (according to t...
by JohnLittle
Sun Jul 21, 2019 7:37 am
Forum: Other Boards
Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
Replies: 167
Views: 301718

Re: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards

Hey @OutoftheBOTS_ a native solution based on your C code would of course be the best solution, but would a micropython implementation be fast enough to get started? I've been playing with jupyter notebook + micropython remote ( + vim-binding ) and have started converting your code. This is way more...
by JohnLittle
Wed Jul 17, 2019 10:14 pm
Forum: Other Boards
Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
Replies: 167
Views: 301718

Re: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards

Wow, thanks guys, today I learn! I also found a stm32duino thread after @mcauser mentioned FSMC. @OutoftheBOTS_ -- Super useful video thanks, I wasn't aware there was any kind of processing involved to get an accurate position out of the touchscreen, so there you go, something else I learned! I have...
by JohnLittle
Wed Jul 17, 2019 9:41 am
Forum: Other Boards
Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
Replies: 167
Views: 301718

Re: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards

Hey mcauser, I just got the LCD module for the BLACK_F407VE board from Aliexpress and was wondering if you had any thoughts regarding driving it from micropython (and reading the touch screen)? And the reason why I needed the sdcard to work on BLACK_F407VE is that the filesystem is about to get real...
by JohnLittle
Tue Jul 16, 2019 9:52 pm
Forum: Other Boards
Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
Replies: 167
Views: 301718

Re: Black STM32F407VET6 + STM32F407ZET6 dev boards

Hey @okwatts, just got the sdcard working I think. I modified ports/stm32/sdcard.c as per @lmamakos's instructions https://forum.micropython.org/viewtopic.php?f=12&t=3086#p18286 // configure the SD card detect pin // we do this here so we can detect if the SD card is inserted before powering it on #...
by JohnLittle
Sun Apr 07, 2019 3:13 pm
Forum: General Discussion and Questions
Topic: Porting the kilo text editor as a micropython module (work in progress)
Replies: 2
Views: 2415

Re: Porting the kilo text editor as a micropython module (work in progress)

Thanks Robert, it was definitely on my TODO list to try and test your editor. I am completely new to micropython development, so one of the reason I went with the kilo editor was to learn about developing modules in C. A single file (kilo.c) made this relatively painless. It'll be interesting to com...
by JohnLittle
Sun Apr 07, 2019 12:58 pm
Forum: General Discussion and Questions
Topic: Porting the kilo text editor as a micropython module (work in progress)
Replies: 2
Views: 2415

Porting the kilo text editor as a micropython module (work in progress)

I was looking for a small text editor that I could integrate with micropython as a C module and found kilo http://antirez.com/news/108 Someone in the comments even talks about running it on a microcontroller and gives pointers to reducing its memory footprint. For now, I've only tested this on the u...
by JohnLittle
Sat Nov 10, 2018 9:03 pm
Forum: ESP8266 boards
Topic: [SOLVED] unable to get REPL prompt
Replies: 17
Views: 19620

Re: [SOLVED] unable to get REPL prompt

Sorry to be resurrecting yet another old thread! I bought a few "CH340G NodeMcu Wireless WIFI Module Connector Board Replace ESP-12E ESP8266 UK" off ebay and was not able to flash them without adding --flash_mode=dout The board is labelled "HW-628 V1.1" and comes with a 4MB flash memory chip. My esp...