Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Adafruit Logo
0

Adding a Single Board Computer to PlatformDetect for Blinka

Image for user MakerMelissa
published March 17, 2020, last edited March 08, 2024
Save Link Note Download
8
Intermediate
Skill guide

Overview

raspberry_pi_blinka_magnifier_300.jpg

So you have a new board, that you want to get working with Blinka, our CircuitPython library compatibility layer for Single Board Computers, or SBCs. Adding a board to Blinka is a 2-part process with the first step being to add it toPlatformDetect so that Blinka knows what board it is working with.

The way that Blinka works is it combines multiple techniques to access the parts of the board that it needs. For GPIO, libraries such asRPi.GPIO orlibgpiod are used. For I2C, thePureIO python library is used, and for SPI, we are using thespidev python library.

When it comes to Blinka itself, there are two main components that need to be defined.

  • First there is thechip, which is the microprocessor definition.
  • Second, there is theboard definition.

The chip defines which pins of the microprocessor are used by the GPIO library andthe board defines which physical pin on the board maps to the pins defined by the chip file.There can be multiple boards that all use the same chip, but the specific implementation may be slightly different. For example, there are many Raspberry Pi computers, but many share the same Broadcom chips. This is why it is important to detect both the chip and the board.

In this guide, we will be going over what steps are needed to add a board such as the Pine A64 to PlatformDetect.

Parts

USB to TTL Serial Cable With Type A plug and 4 wire sockets
The cable is easiest way ever to connect to your microcontroller/Raspberry Pi/WiFi router serial console port. Inside the big USB plug is a USB<->Serial conversion chip and at...
$9.95
In Stock
A coiled, black, FTDI cable with a USB-C connector.
Just about all electronics use a UART serial port with RX and TX pins for debugging, bootloading, programming, serial output, etc. But it's rare for a computer to have a serial...
$19.95
In Stock

Page last edited March 08, 2024

Text editor powered bytinymce.

Related Guides
Search

Search

Categories

[8]ページ先頭

©2009-2025 Movatter.jp