Found this LED Blink code from Robert Plantz, but I'm stuck
-
So this link here goes to Robert Plantz's book to a programming exercise where he makes an LED blink 5 times. But the problem I'm having with it is that he is using a Rasp. Pi 3 and I have a zero. I just got into pi's recently and am currently trying to get my son into it with me. If anyone knows what would need to be changed in order for this to work on my pi zero, that would be greatly appreciated.
https://bob.cs.sonoma.edu/IntroCompOrg-RPi/exercises-34.html
-
Does your Raspberry Pi Zero have GPIO pins? You linked instructions for a Raspberry Pi 3 that has pins.
RPi Zero with pins:
RPi Zero without pins:
2x20-pin Strip Dual Male Header:
-
-
@cyperghost @Devabhai Wouldn't "C" be easier to learn anyway? This is a teaching scenario right?
-
@IanDaemon I think this isn't the answer here. Easier means for the right purpose. So to let a LED blink the approach is much easier to achive with bash or python. For a learning experiment C is also a good choice. But the whole scenario... A Raspberry Pie to let a LED blink is wrong. A microcontroller (of any kind) would be the correct way ... maybe in a C-style language, maybe by direct adressing. But this is only my opinion.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.