TMC2209_Raspberry_Pi icon indicating copy to clipboard operation
TMC2209_Raspberry_Pi copied to clipboard

Support for Luckfox Pico maybe thru python-periphery support

Open jenswes opened this issue 3 months ago • 5 comments

Hello, whats about https://github.com/vsergeev/python-periphery i'm using a Luckfox Pico Max https://wiki.luckfox.com/Luckfox-Pico/Luckfox-Pico-GPIO a nice device for me, as i want Ethernet an onboard Flash. i've installed alpine linux and they use periphery for GPIO

from periphery import GPIO
import time
from timeit import default_timer as timer
Write_Pin = 55  
Write_GPIO = GPIO(Write_Pin, "out")
start = timer()

for x in range(1000000):
    Write_GPIO.write(True)
    Write_GPIO.write(False)

end = timer()
print(end - start)
jalpico:~/src# python test_periphery.py
14.812718628001676

as this is a single core Processor Cortex A7 1.2GHz (Rockchip RV1106) 256MB DDR3L SPI NAND FLASH (256MB)

~15sec sounds not bad periphery is also written in pure Python

it would be nice to be able to use [TMC2209_Raspberry_Pi] on other platforms too

thanks jens

jenswes avatar May 20 '24 20:05 jenswes