Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

Port of micropython to Rasberry Pi AROS (WIP)

Last updated on 1 hour ago
T
tennis74Newbie
Posted 1 hour ago
Hi,

I have a Work in Progress port of micropython for Rasberry Pi AROS and supports
the hardware peripherals as GPIO, UART, I2C, SPI, PWM.

Link : https://github.co...icropython

Micropython is very close to the full Python 3 language, but with
some smaller differences : https://docs.micr...index.html

This was tested on a Pi400 and GPIO + UART is confirmed to work.

When the peripherals are working a huge amount of device drivers
already available for micropython should then work out of the box.
If you have any device with the standard ports, there is a good chance
to find a ready drive on the internet.

Documentation for using the peripherals are found in the official
micropython site : https://docs.micr...chine.html

Open issues:
- Open with icon not handled. Probably can be copied from lua port.
- Currently the input echo each line to the output (raw input fix with termios or maybe Dos?)
- Ctrl+C signal is not implemented. To exit : "import sys; sys.exit(0)"
- Raw 1MHz clock access used. ("timer.device" with UNIT_MICROHZ only seem to give 100Hz frequency)
1MHz clock needed for onewire bit banging and other accurate timing purposes.
- Enable/Disable used for critical timing sections. Not sure this is the right solution.
- GPIO interrupts seems to be available, but not implemented. Useful for buttons, encoders etc.
- Direct use of peripherals probably should be use the AROS api where available.
- Threading not enabled.
- Soft timer device is missing. Can probably be copied from the SDL3 port with separate running thread.
- Networking not enabled (socket module needed)

I was hoping someone with more in-depth knowledge of AROS could take a look at
this port and give some advice how to sanitize and improve the code for general
consumption.

Note : Connecting anything to the unprotected pins of your Rasberry Pi device could potential
destroy it.
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.
Users who participated in discussion: tennis74