![]() ![]() Obviously, pins like 5V and GND cannot be addressed since they only have their one purpose and cannot be changed. The BCM GPIO number is the number that the processor uses to differentiate the pins. The reason this appears differently on P5 is because the indicator is on the bottom side. Unlike with ICs, orienting the pins with that indicator in the top left, the pin numbers are increased from left to right and top to bottom. This is even true of integrated circuit (IC) chips. For nearly any device, if you look carefully on the board, there is an indicator near the "1" pin on a header. There is the physical pin number, which altenate sideways increasing from top to bottom. There are two kinds of numbers to specify which pin you want to use. ![]() It is not a problem for most situations, but it is definitely something to keep in mind. As great as Python is, it is even less reliable because of a process called garbage collection. Likewise, timing events may be slightly less reliable too. While your program might be able to recieve the majority of the processor's attention, it will not be able to use all of it. Unlike an Arduino, which only runs your program, the Raspberry Pi takes turns running many programs like a normal desktop. Aside from those limitations, you should also keep in mind that pin manipulation is not done in a real time environment. It has relatively few pins and are a little less powerful than what you might expect from a microcontroller. There are some great libraries that make it really easy to use the pins on the Raspberry Pi. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |