See thread at:Before I go and splash out any cash, does anyone know if you can access the GPIO pins on a Raspberry Pi via BBC BASIC via RISC OS?
To a large extent that's true, there are "snippets" of information here and there. The PRM's distributed in the Pi RISC OS image go back to RISC OS 3.xx so are not quite up to date but do give useful pointers and get across key concepts in RISC OS - but then miss out entirely on the new hardware abstraction layer and the 32 bit stuff.doglitbug wrote:Let me know if you find a wiki. I would love to have a place for RISC OS information but purely for the raspberry pi distribution(up to date PRMs, tutorials etc) but I don't think such a project exists yet
Well unfortunately the SWI's have changed a little. Thought it is just looping with a wait and toggleing the state of the pin, like any language. Look at the current GPIO Strong Help manual for reference on how to change the pin state (sorry I have went back to directly writing to the GPIO registers without the GPIO module, at least in RISC OS).gastorro wrote: ↑Tue Feb 20, 2018 5:23 pmThat's exactly what I'm looking for :
How to control the GPIO pins of my Raspberry Pi 3 Model B from a 'BBC BASIC'/(in 'RISC OS Pico image' or 'RISC OS Pi image') program.
For example, here's how to blink the green LED on the RPi3 board with the other implementation of BASIC ( the IchigoJam BASIC ),
10 LED 1
20 WAIT 30
30 LED 0
40 WAIT 30
50 GOTO 10
The code for that ^^ LED function was obviously re-written (probably in C or assembly) by someone,
to match the specifics of this (Raspberry) board (Thank you btw!)
But this ^ ported version of the IchigoJam BASIC offers only 1KB of program space.. So I prefer RISC OS' BBC BASIC
So how do I blink the green LED in BBC BASIC ? ( for starter..)
Users browsing this forum: No registered users and 5 guests