User avatar
Z80 Refugee
Posts: 186
Joined: Sun Feb 09, 2014 1:53 pm

Re: Accessing GPIO I/O Pins from Forth, and How to Use Them

Sun Apr 15, 2018 7:01 am

Okay..... but that doesn't look very Forth, this thread is about Forth, and I'm using Forth! You could just as well talk about C or Python.
Military and Automotive Electronics Design Engineer (retired)

8thdev
Posts: 24
Joined: Fri Jul 31, 2015 2:23 pm

Re: Accessing GPIO I/O Pins from Forth, and How to Use Them

Sun Apr 15, 2018 7:05 am

It is a Forth-derived language.

What is it about the sample I wrote which doesn't look like Forth to you? The "hw:" prefix on the GPIO words?

User avatar
Z80 Refugee
Posts: 186
Joined: Sun Feb 09, 2014 1:53 pm

Re: Accessing GPIO I/O Pins from Forth, and How to Use Them

Sun Apr 15, 2018 9:00 am

Any Forth aficionado knows you can define (almost) anything to do (almost) anything, but you are correct that it is not one of the standard Forth defining constructs. I just don't see how bringing another dialect into the equation continues the theme of this thread - other than to make readers aware that 8th exists, end of.
Military and Automotive Electronics Design Engineer (retired)

User avatar
Z80 Refugee
Posts: 186
Joined: Sun Feb 09, 2014 1:53 pm

Hardware Interfacing

Sun Jun 17, 2018 11:50 am

Now moved to the hardware section: viewtopic.php?p=1330183#p1330183
Last edited by Z80 Refugee on Tue Jun 19, 2018 1:03 pm, edited 3 times in total.
Military and Automotive Electronics Design Engineer (retired)

User avatar
rpdom
Posts: 12506
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK

Re: Accessing GPIO I/O Pins from Forth, and How to Use Them

Sun Jun 17, 2018 12:13 pm

Z80 Refugee wrote:
Sun Jun 17, 2018 11:50 am
The diagrams below show the orientation and pin numbering for the old 26-pin (RPi models A and B) version and the 40-pin version used on all other models.
You should also note that on the original Pi B the 26-pin numbering was slightly different. Pins 3 and 5 were GPIO0 and GPIO1 (BCM), still with the 1K8 pull-ups and available for general use, and Pin 13 was GPIO21.

User avatar
Z80 Refugee
Posts: 186
Joined: Sun Feb 09, 2014 1:53 pm

Re: Accessing GPIO I/O Pins from Forth, and How to Use Them

Sun Jun 17, 2018 8:30 pm

rpdom wrote:
Sun Jun 17, 2018 12:13 pm
You should also note that on the original Pi B the 26-pin numbering was slightly different. Pins 3 and 5 were GPIO0 and GPIO1 (BCM), still with the 1K8 pull-ups and available for general use, and Pin 13 was GPIO21.
Thanks for the alert. My research indicates the above only applies to the Rev 1 boards - Rev 2 use the scheme as shown in my diagram.
Military and Automotive Electronics Design Engineer (retired)

Heater
Posts: 9247
Joined: Tue Jul 17, 2012 3:02 pm

Re: Accessing GPIO I/O Pins from Forth, and How to Use Them

Mon Jun 18, 2018 12:55 pm

Z80 Refugee,
...that it is not one of the standard Forth defining constructs. I just don't see how bringing another dialect into the equation continues the theme of this thread
That is the beauty of Forth. There is no standard, there are so many dialects, none of them compatible, none of them intelligible.

Return to “Other programming languages”

Who is online

Users browsing this forum: No registered users and 4 guests