In this example, an LED connected to GPIO pin 17 is controlled by a button connected between pin 2 and GND. Taking lessons from the implementation of gpiozero for Python, this new extension provides a simpler way of using electronic components: currently buttons and LEDs. The Simple Electronics extension is the first version of a beginner-friendly extension for interacting with Raspberry Pi’s GPIO pins. If you are looking to add something simple, like an LED or button controller for a game, you should find the new Simple Electronics extension easier to use than the GPIO extension. The GPIO extension gives you the flexibility to connect and control a whole host of electronic devices. Its layout and functionality is very similar, so you can use it as a drop-in replacement. GPIO extension is a replacement for the existing extension in Scratch 2. Scratch 3 Desktop for Raspbian comes with new extensions to allow you to control the GPIO pins and Sense HAT with Scratch code! Sudo apt-get install scratch3 What can I do with Scratch 3 and Raspberry Pi? Open a terminal window, and type in and run the following commands: sudo apt-get update How to install Scratch 3 using the terminal Open up the menu, click on Preferences > Recommended Software, and then select Scratch 3 and click on OK. How to install Scratch 3 using the Recommended Software app Once you’re running the latest version of Raspberry Pi OS, you can install Scratch 3 either using the Recommended Software application or apt on the terminal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |